Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) Got boring AST Fuzzing step 2 out of 1000 SELECT pow(3, 2), POW(3, 2), power(materialize(3), 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT pow(3, 2), POW(3, 2), power(materialize(3), 2), POWER(3, 2) Got boring AST Fuzzing step 4 out of 1000 SELECT pow(3, 2), POW(3, 2), power(materialize(3), 2), POWER(3, materialize(2)) Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT pow(3, 2), POW(3, 2), power(materialize(3), 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT pow(3, 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(toNullable(3), 2) Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT pow(toNullable(3), 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 SELECT pow(pow(3, 2), toNullable(3), 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2) Error on processing query 'SELECT pow(pow(3, 2), toNullable(3), 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(pow(3, 2), toNullable(3), 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 9 out of 1000 SELECT pow(toNullable(3), 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2) Got boring AST Fuzzing step 10 out of 1000 SELECT pow(toNullable(3), toUInt256(2)), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2) Error on processing query 'SELECT pow(toNullable(3), toUInt256(2)), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT pow(toNullable(3), toUInt256(2)), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 11 out of 1000 SELECT pow(toNullable(3), 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2) Got boring AST Fuzzing step 12 out of 1000 SELECT pow(toNullable(3), 2), POW(3, toNullable(2)), power(materialize(3), 2), POWER(3, 2) Got boring AST Fuzzing step 13 out of 1000 SELECT pow(toNullable(3), 2), POW(materialize(3), toNullable(2)), power(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT pow(toNullable(3), 2), POW(3), power(3, 2), POWER(3, 2) Error on processing query 'SELECT pow(toNullable(3), 2), POW(3), power(3, 2), POWER(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(toNullable(3), 2), POW(3), power(3, 2), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 15 out of 1000 SELECT pow(toNullable(3), 2), POW(materialize(3), toNullable(2)), power(3, 2), POWER(3, 2) Got boring AST Fuzzing step 16 out of 1000 SELECT pow(toNullable(3), 2), POW(materialize(3), toNullable(toNullable(2), 2)), power(3, 2), POWER(3, 2) Error on processing query 'SELECT pow(toNullable(3), 2), POW(materialize(3), toNullable(toNullable(2), 2)), power(3, 2), POWER(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT pow(toNullable(3), 2), POW(materialize(3), toNullable(toNullable(2), 2)), power(3, 2), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 17 out of 1000 SELECT pow(toNullable(3), 2), POW(materialize(3), toNullable(2)), power(3, 2), POWER(3, 2) Got boring AST Fuzzing step 18 out of 1000 SELECT pow(toNullable(3), 2), POW(materialize(toLowCardinality(3)), toNullable(2)), power(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT pow(3, 2), POW(toLowCardinality(3), toNullable(2)), power(3, 2), POWER(3, 2) PREWHERE POWER(3, 2) Error on processing query 'SELECT pow(3, 2), POW(toLowCardinality(3), toNullable(2)), power(3, 2), POWER(3, 2) PREWHERE POWER(3, 2)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 20 out of 1000 SELECT pow(toNullable(3), materialize(2)), POW(materialize(toLowCardinality(3)), toNullable(2)), power(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), POW(materialize(toLowCardinality(3)), 2), power(3, 2), POWER(3, 2) Error on processing query 'SELECT pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), POW(materialize(toLowCardinality(3)), 2), power(3, 2), POWER(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), POW(materialize(toLowCardinality(3)), 2), power(3, 2), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 22 out of 1000 SELECT pow(toNullable(3), materialize(2)), POW(materialize(3), toNullable(2)), power(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT pow(3, materialize(2)), POW(materialize(3), 2), power(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT pow(3, materialize(2)), POW(materialize(3), 2), power(3, 2), POWER(3, 2) Got boring AST Fuzzing step 25 out of 1000 SELECT pow(3, 2), POW(materialize(3), 2), power(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT pow(3, 2), POW(materialize(3), 2), power(3, 2), POWER(3, 2) Got boring AST Fuzzing step 27 out of 1000 SELECT pow(3, 2), POW(materialize(3), 2), power(3, 2), POWER(3, 2) Got boring AST Fuzzing step 28 out of 1000 SELECT 2, pow(3, 2), POW(materialize(3), 2), power(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toLowCardinality(3), 2), POWER(3, POW(3, toNullable(materialize(2))), 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(toLowCardinality(3), 2), POWER(3, POW(3, toNullable(materialize(2))), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, pow(3, 2), POW(3, 2), power(toLowCardinality(3), 2), POWER(3, POW(3, toNullable(materialize(2))), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 30 out of 1000 SELECT 2, pow(3, 2), POW(materialize(3), 2), power(3, 2), POWER(3, 2) Got boring AST Fuzzing step 31 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toLowCardinality(toNullable(3)), 2), POWER(3, 2) WHERE 1023 Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(toLowCardinality(toNullable(3)), 2), POWER(3, 2) WHERE 1023': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 32 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) Got boring AST Fuzzing step 34 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), POWER(3, 2), power(3, toLowCardinality(2)), POWER(toLowCardinality(3), 2) Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), POWER(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(toLowCardinality(3), 2) Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT 2, pow(3, 2), POW(materialize(toLowCardinality(3)), 2), POWER(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(toLowCardinality(2, 3), 2) Error on processing query 'SELECT 2, pow(3, 2), POW(materialize(toLowCardinality(3)), 2), POWER(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(toLowCardinality(2, 3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, pow(3, 2), POW(materialize(toLowCardinality(3)), 2), POWER(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(toLowCardinality(2, 3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 37 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), POWER(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(toLowCardinality(3), 2) Got boring AST Fuzzing step 38 out of 1000 SELECT 2, pow(3, 2), POW(3, toUInt128(2)), POWER(3, 2), power(toNullable(3), 2), POWER(toLowCardinality(3), 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, toUInt128(2)), POWER(3, 2), power(toNullable(3), 2), POWER(toLowCardinality(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, pow(3, 2), POW(3, toUInt128(2)), POWER(3, 2), power(toNullable(3), 2), POWER(toLowCardinality(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 39 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), POWER(3, 2), power(toNullable(3), 2), POWER(toLowCardinality(3), 2) Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT toNullable(2), pow(3, 2), POW(3, 2), POWER(toUInt256(3), 2), power(toNullable(3), 2), POWER(toLowCardinality(3), 2) Error on processing query 'SELECT toNullable(2), pow(3, 2), POW(3, 2), POWER(toUInt256(3), 2), power(toNullable(3), 2), POWER(toLowCardinality(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), pow(3, 2), POW(3, 2), POWER(toUInt256(3), 2), power(toNullable(3), 2), POWER(toLowCardinality(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 41 out of 1000 SELECT 2, pow(3, 2), POW(3, materialize(2)), POWER(toLowCardinality(3), 2), power(3, 2), POWER(2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, materialize(2)), POWER(toLowCardinality(3), 2), power(3, 2), POWER(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, pow(3, 2), POW(3, materialize(2)), POWER(toLowCardinality(3), 2), power(3, 2), POWER(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 42 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), POWER(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), POWER(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) Got boring AST Fuzzing step 44 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), POWER(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 48 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 49 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 50 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(2), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, pow(3, 2), POW(3, 2), power(2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 51 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 52 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 53 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 54 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) PREWHERE materialize(3) Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) PREWHERE materialize(3)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 55 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 56 out of 1000 SELECT 2, pow(3), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT 2, pow(3), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, pow(3), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 57 out of 1000 SELECT materialize(2), pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT materialize(2), pow(2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT materialize(2), pow(2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT materialize(2), pow(2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 59 out of 1000 SELECT materialize(2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT materialize(2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 61 out of 1000 SELECT materialize(2), pow(3, materialize(2)), POW(3, power(toNullable(3), 3, toLowCardinality(2)), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT materialize(2), pow(3, materialize(2)), POW(3, power(toNullable(3), 3, toLowCardinality(2)), 2), power(3, 2), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(2), pow(3, materialize(2)), POW(3, power(toNullable(3), 3, toLowCardinality(2)), 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 62 out of 1000 SELECT materialize(2), pow(3, materialize(2)), POW(3, 2), power(3, toUInt256(2)), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT materialize(2), pow(3, materialize(2)), POW(3, 2), power(3, toUInt256(2)), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT materialize(2), pow(3, materialize(2)), POW(3, 2), power(3, toUInt256(2)), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 63 out of 1000 SELECT materialize(2), pow(3, materialize(POWER(3, 2), 2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT materialize(2), pow(3, materialize(POWER(3, 2), 2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize(2), pow(3, materialize(POWER(3, 2), 2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 64 out of 1000 SELECT materialize(pow(pow(3, 2), toNullable(3), 2), 2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT materialize(pow(pow(3, 2), toNullable(3), 2), 2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(pow(pow(3, 2), toNullable(3), 2), 2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 65 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(3, 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(3, 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3) Got boring AST Fuzzing step 68 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(3, 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3) Got boring AST Fuzzing step 69 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(3, 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3) Got boring AST Fuzzing step 70 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(power(materialize(3), 2), 3, materialize(2)) WHERE materialize(3) Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(power(materialize(3), 2), 3, materialize(2)) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(power(materialize(3), 2), 3, materialize(2)) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 71 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT toUInt256(2), pow(materialize(3), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, materialize(pow(3, materialize(2)), 2)) WHERE materialize(3) Error on processing query 'SELECT toUInt256(2), pow(materialize(3), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, materialize(pow(3, materialize(2)), 2)) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt256(2), pow(materialize(3), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, materialize(pow(3, materialize(2)), 2)) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 73 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3), POWER(3, materialize(2)) WHERE materialize(3) Error on processing query 'SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3), POWER(3, materialize(2)) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3), POWER(3, materialize(2)) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 74 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 76 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, toNullable(toUInt256(2))), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, toNullable(toUInt256(2))), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, toNullable(toUInt256(2))), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 77 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 78 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 79 out of 1000 SELECT toUInt256(toUInt256(2), 2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT toUInt256(toUInt256(2), 2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(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 toUInt256(toUInt256(2), 2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780e86c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 80 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(POW(3, 2), toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT toUInt256(2), pow(3, 2), POW(POW(3, 2), toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toUInt256(2), pow(3, 2), POW(POW(3, 2), toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 81 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 82 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 83 out of 1000 SELECT toUInt256(2), pow(3, POWER(3, 2), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3) Error on processing query 'SELECT toUInt256(2), pow(3, POWER(3, 2), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toUInt256(2), pow(3, POWER(3, 2), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, materialize(2)) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 84 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 85 out of 1000 SELECT toUInt256(2), pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 86 out of 1000 SELECT toUInt256(2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT toUInt256(2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 88 out of 1000 SELECT toUInt256(3, 2), pow(power(2), 3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT toUInt256(3, 2), pow(power(2), 3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(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 toUInt256(3, 2), pow(power(2), 3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780e86c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 89 out of 1000 SELECT toUInt256(2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(2) WHERE materialize(3) Error on processing query 'SELECT toUInt256(2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toUInt256(2), pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 90 out of 1000 SELECT toUInt256(2), pow(3, materialize(2)), POW(3, 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 SELECT toUInt256(2), pow(power(3, 2), toUInt128(3), materialize(3, 2)), POW(3, 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) Error on processing query 'SELECT toUInt256(2), pow(power(3, 2), toUInt128(3), materialize(3, 2)), POW(3, 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt256(2), pow(power(3, 2), toUInt128(3), materialize(3, 2)), POW(3, 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 92 out of 1000 SELECT toUInt256(2), pow(3, materialize(2)), POW(3, 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) Got boring AST Fuzzing step 93 out of 1000 SELECT toUInt256(2), pow(3, materialize(2)), POW(materialize(3), 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(toLowCardinality(3)) Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT toUInt256(2), pow(materialize(2)), POW(materialize(3), 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(toLowCardinality(3)) Error on processing query 'SELECT toUInt256(2), pow(materialize(2)), POW(materialize(3), 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(toLowCardinality(3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toUInt256(2), pow(materialize(2)), POW(materialize(3), 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(toLowCardinality(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 95 out of 1000 SELECT toUInt256(2), pow(3, materialize(pow(3, 2), 2)), POW(materialize(3), 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(toLowCardinality(3)) Error on processing query 'SELECT toUInt256(2), pow(3, materialize(pow(3, 2), 2)), POW(materialize(3), 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(toLowCardinality(3))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt256(2), pow(3, materialize(pow(3, 2), 2)), POW(materialize(3), 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(toLowCardinality(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 96 out of 1000 SELECT 2, pow(3, materialize(2)), POW(3, 2), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(3), toNullable(2)), toNullable(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT 2, pow(3, materialize(2)), POW(3, 2), power(POWER(3, 2), 3, toNullable(toUInt128(2))), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(3), POW(materialize(3), 2) Error on processing query 'SELECT 2, pow(3, materialize(2)), POW(3, 2), power(POWER(3, 2), 3, toNullable(toUInt128(2))), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(3), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, pow(3, materialize(2)), POW(3, 2), power(POWER(3, 2), 3, toNullable(toUInt128(2))), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(3), POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 98 out of 1000 SELECT 2, pow(materialize(3), 3, materialize(2)), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(POWER(power(3, 2), 3, 2), 3), toNullable(2)), toNullable(3), POW(materialize(3), 2) Error on processing query 'SELECT 2, pow(materialize(3), 3, materialize(2)), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(POWER(power(3, 2), 3, 2), 3), toNullable(2)), toNullable(3), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, pow(materialize(3), 3, materialize(2)), power(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(POWER(power(3, 2), 3, 2), 3), toNullable(2)), toNullable(3), POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 99 out of 1000 SELECT 2, pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(3), POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT 2, pow(3, materialize(2)), POW(power(3, 2), 3, 2), power(toLowCardinality(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(toLowCardinality(2), 3), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, pow(3, materialize(2)), POW(power(3, 2), 3, 2), power(toLowCardinality(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(toLowCardinality(2), 3), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, pow(3, materialize(2)), POW(power(3, 2), 3, 2), power(toLowCardinality(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(toLowCardinality(2), 3), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 101 out of 1000 SELECT 2, pow(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(3), POW(3, 2) Got boring AST Fuzzing step 102 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toNullable(2)), toNullable(3), POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 105 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 106 out of 1000 SELECT 2, pow(3, 2), POW(3), power(toNullable(3), 2), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3), power(toNullable(3), 2), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, pow(3, 2), POW(3), power(toNullable(3), 2), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 107 out of 1000 EXPLAIN optimize = true, json = true SELECT 2, pow(3, 2), POW(materialize(3), 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'EXPLAIN optimize = true, json = true SELECT 2, pow(3, 2), POW(materialize(3), 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 108 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 109 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 110 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 111 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 112 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 113 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 114 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 115 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 116 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(toUInt256(2))), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(toUInt256(2))), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(toUInt256(2))), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 117 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 120 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, pow(3, POWER(3, 2), 2), POW(3, 2), power(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, pow(3, POWER(3, 2), 2), POW(3, 2), power(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 121 out of 1000 SELECT 2, pow(3, 2), POW(3), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, pow(3, 2), POW(3), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 122 out of 1000 SELECT 2, pow(2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, pow(2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 123 out of 1000 SELECT 2, pow(3, 2), POW(3, toNullable(2)), power(3, 2), POWER(toLowCardinality(3), toNullable(materialize(toLowCardinality(toUInt128(2))))) WHERE materialize(3) GROUP BY 3, POW(3, POW(toLowCardinality(3), 2), 2), toNullable(3), POW(3, 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, toNullable(2)), power(3, 2), POWER(toLowCardinality(3), toNullable(materialize(toLowCardinality(toUInt128(2))))) WHERE materialize(3) GROUP BY 3, POW(3, POW(toLowCardinality(3), 2), 2), toNullable(3), POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, pow(3, 2), POW(3, toNullable(2)), power(3, 2), POWER(toLowCardinality(3), toNullable(materialize(toLowCardinality(toUInt128(2))))) WHERE materialize(3) GROUP BY 3, POW(3, POW(toLowCardinality(3), 2), 2), toNullable(3), POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 124 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, toUInt256(2)), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH TOTALS Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(3, toUInt256(2)), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, pow(3, 2), POW(3, 2), power(3, toUInt256(2)), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 125 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 126 out of 1000 SELECT 2, pow(3, 2), POW(3, materialize(toUInt256(2))), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, materialize(toUInt256(2))), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, pow(3, 2), POW(3, materialize(toUInt256(2))), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 127 out of 1000 SELECT 2, pow(toNullable(toUInt128(3)), 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(toNullable(toUInt128(3)), 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, pow(toNullable(toUInt128(3)), 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 128 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT 2, pow(toUInt256(3), 2), POW(2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT 2, pow(toUInt256(3), 2), POW(2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, pow(toUInt256(3), 2), POW(2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 131 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 132 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN PIPELINE SELECT 2, pow(3, toNullable(2)), POW(toNullable(toUInt128(3)), toNullable(2)), power(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 2, pow(3, toNullable(2)), POW(toNullable(toUInt128(3)), toNullable(2)), power(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, pow(3, toNullable(2)), POW(toNullable(toUInt128(3)), toNullable(2)), power(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 134 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, toNullable(2)) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Got boring AST Fuzzing step 135 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(materialize(toNullable(3)), 2) Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 138 out of 1000 SELECT materialize(2), pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(materialize(3)), toLowCardinality(2)), POWER(3, 2) WHERE materialize(power(3, toLowCardinality(2)), 3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Error on processing query 'SELECT materialize(2), pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(materialize(3)), toLowCardinality(2)), POWER(3, 2) WHERE materialize(power(3, toLowCardinality(2)), 3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize(2), pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(materialize(3)), toLowCardinality(2)), POWER(3, 2) WHERE materialize(power(3, toLowCardinality(2)), 3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 139 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 140 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toLowCardinality(toUInt128(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT materialize(2), pow(3, 2), POW(materialize(toLowCardinality(toNullable(3))), toUInt128(2)), power(toNullable(POWER(3, 2), 3), 2), power(toNullable(3), toLowCardinality(2)), toLowCardinality(3), POWER(3, 2) WHERE materialize(2, 3) GROUP BY 3, POW(3, 2), toLowCardinality(toUInt128(3)), POW(3, 2) Error on processing query 'SELECT materialize(2), pow(3, 2), POW(materialize(toLowCardinality(toNullable(3))), toUInt128(2)), power(toNullable(POWER(3, 2), 3), 2), power(toNullable(3), toLowCardinality(2)), toLowCardinality(3), POWER(3, 2) WHERE materialize(2, 3) GROUP BY 3, POW(3, 2), toLowCardinality(toUInt128(3)), POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT materialize(2), pow(3, 2), POW(materialize(toLowCardinality(toNullable(3))), toUInt128(2)), power(toNullable(POWER(3, 2), 3), 2), power(toNullable(3), toLowCardinality(2)), toLowCardinality(3), POWER(3, 2) WHERE materialize(2, 3) GROUP BY 3, POW(3, 2), toLowCardinality(toUInt128(3)), POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 142 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), POW(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toLowCardinality(toUInt128(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), POW(3, 2), power(toNullable(3), toLowCardinality(3, 2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toUInt128(2)), toLowCardinality(toUInt128(3)), POW(materialize(3), 2) Error on processing query 'SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), POW(3, 2), power(toNullable(3), toLowCardinality(3, 2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toUInt128(2)), toLowCardinality(toUInt128(3)), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, pow(3, 2), POW(3, 2), power(toNullable(3), 2), POW(3, 2), power(toNullable(3), toLowCardinality(3, 2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, toUInt128(2)), toLowCardinality(toUInt128(3)), POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 144 out of 1000 SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(toNullable(3), 2), POW(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), 2) Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), 2) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(materialize(toUInt256(3))) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), 2) Error on processing query 'SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(materialize(toUInt256(3))) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column materialize(materialize(_CAST('3'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 147 out of 1000 SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(toNullable(3), toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), 2) Got boring AST Fuzzing step 148 out of 1000 SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), 2) Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(3, toLowCardinality(toLowCardinality(2))), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), POW(3, toNullable(2)), 2) Error on processing query 'SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(3, toLowCardinality(toLowCardinality(2))), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), POW(3, toNullable(2)), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, pow(3, 2), POW(toLowCardinality(3), 2), power(3, 2), POW(3, 2), power(3, toLowCardinality(toLowCardinality(2))), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(toNullable(3)), POW(3, toNullable(2)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 150 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, toLowCardinality(2)), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 153 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 154 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toNullable(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT materialize(2), pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT materialize(2), pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 158 out of 1000 SELECT materialize(2), pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 159 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT 2, pow(3, 2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), toUInt128(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, toUInt256(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(toUInt128(3))) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, toUInt256(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(toUInt128(3))) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(3, toUInt256(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(toUInt128(3))) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 164 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3), power(3, toNullable(2)), POWER(toUInt256(2), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), materialize(toNullable(2))) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3), power(3, toNullable(2)), POWER(toUInt256(2), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), materialize(toNullable(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3), power(3, toNullable(2)), POWER(toUInt256(2), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), materialize(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 165 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 166 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, 2), power(3, toUInt256(2)), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toUInt128(2)), 3, POW(materialize(3), 2) Error on processing query 'SELECT toNullable(2), power(3, 2), POW(3, 2), power(3, toUInt256(2)), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toUInt128(2)), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), power(3, 2), POW(3, 2), power(3, toUInt256(2)), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toUInt128(2)), 3, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 167 out of 1000 SELECT 2, POW(3, 2), power(3, 2), POW(3, toUInt128(2)), power(3, 2), POWER(2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Error on processing query 'SELECT 2, POW(3, 2), power(3, 2), POW(3, toUInt128(2)), power(3, 2), POWER(2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), power(3, 2), POW(3, toUInt128(2)), power(3, 2), POWER(2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 168 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, materialize(toNullable(toUInt128(2)))), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, materialize(toNullable(toUInt128(2)))), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 169 out of 1000 SELECT toNullable(toLowCardinality(2)), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(3, POW(3, toNullable(POW(materialize(3), 2), 2)), 2) Error on processing query 'SELECT toNullable(toLowCardinality(2)), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(3, POW(3, toNullable(POW(materialize(3), 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 toNullable(toLowCardinality(2)), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(3, POW(3, toNullable(POW(materialize(3), 2), 2)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 170 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 171 out of 1000 SELECT toNullable(toLowCardinality(2)), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 175 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 176 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 177 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 180 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 181 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 185 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 186 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 187 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 188 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 189 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 193 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 195 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 196 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 198 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 199 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(toLowCardinality(toUInt128(3)), 3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) WITH ROLLUP Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(toLowCardinality(toUInt128(3)), 3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) 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(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(toLowCardinality(toUInt128(3)), 3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 200 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 201 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 203 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 204 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 205 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 206 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 208 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 209 out of 1000 SELECT toNullable(2), POW(3, 2), power(3), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 210 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 211 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 212 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 222 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 225 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('toNullable'): toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 227 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 232 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 233 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 234 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 235 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 237 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 238 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 239 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 243 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 244 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 246 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 247 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 253 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toLowCardinality(3), toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(3, 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toLowCardinality(3), toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toLowCardinality(3), toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 255 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 256 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 258 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 260 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 262 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Got boring AST Fuzzing step 264 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), materialize(toLowCardinality(3)), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(toUInt128(2))) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(toUInt128(2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(toUInt128(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 268 out of 1000 SELECT toNullable(2), POW(3, 3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable(2), POW(3, 3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 269 out of 1000 SELECT toNullable(2), POW(3, 2), power(toUInt256(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(toUInt256(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(toUInt256(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 270 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) PREWHERE materialize(toNullable(3)) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(materialize(3)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) PREWHERE materialize(toNullable(3)) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(materialize(3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) PREWHERE materialize(toNullable(3)) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(materialize(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 271 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(2, toNullable(power(materialize(3), 2), 3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(2, toNullable(power(materialize(3), 2), 3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(2, toNullable(power(materialize(3), 2), 3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 272 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toLowCardinality(power(toNullable(3), toLowCardinality(2)), 3), POW(materialize(3), toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toLowCardinality(power(toNullable(3), toLowCardinality(2)), 3), POW(materialize(3), toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toLowCardinality(power(toNullable(3), toLowCardinality(2)), 3), POW(materialize(3), toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 273 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)) Got boring AST Fuzzing step 274 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(toNullable(3)), POW(materialize(3), toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), toNullable(2)) Got boring AST Fuzzing step 277 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(toUInt128(2))), toLowCardinality(3), POW(materialize(3), toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(toUInt128(2))), toLowCardinality(3), POW(materialize(3), toNullable(2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(toUInt128(2))), toLowCardinality(3), POW(materialize(3), toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 278 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 282 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 283 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 284 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 286 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3) GROUP BY 3, POW(3, toLowCardinality(toNullable(2))), 3, POW(POWER(toLowCardinality(3), 2), materialize(3), 2) WITH ROLLUP Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3) GROUP BY 3, POW(3, toLowCardinality(toNullable(2))), 3, POW(POWER(toLowCardinality(3), 2), materialize(3), 2) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3) GROUP BY 3, POW(3, toLowCardinality(toNullable(2))), 3, POW(POWER(toLowCardinality(3), 2), materialize(3), 2) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 287 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 288 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 289 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 291 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('toNullable'): toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 292 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 294 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 295 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 297 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('toNullable'): toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 299 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 300 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 301 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 302 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 303 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('toNullable'): toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 306 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 308 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 311 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('toNullable'): toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 313 out of 1000 EXPLAIN PIPELINE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 314 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('toNullable'): toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 316 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 317 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 318 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 319 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 321 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 322 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 EXPLAIN SYNTAX SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 324 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 EXPLAIN SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 326 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 329 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 330 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 331 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 333 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 334 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 335 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 336 out of 1000 EXPLAIN AST SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 337 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT 2, POW(3, 2), power(3, materialize(toUInt128(2))), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), 3, POW(3, toLowCardinality(2)) Error on processing query 'SELECT 2, POW(3, 2), power(3, materialize(toUInt128(2))), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), 3, POW(3, toLowCardinality(2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), power(3, materialize(toUInt128(2))), POW(3, 2), power(3, 2), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), 3, POW(3, toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 339 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, toNullable(2)), POWER(toLowCardinality(3), 2) WHERE materialize(toNullable(3)) GROUP BY 3, POW(3, toLowCardinality(2)), 3, POW(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT toNullable(2), POW(3, 2), power(2), POW(3, 2), power(toLowCardinality(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(2), POW(3, 2), power(toLowCardinality(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(2), POW(3, 2), power(toLowCardinality(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 342 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, toUInt256(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, toUInt256(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, toUInt256(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 343 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(toUInt128(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(toUInt128(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, toNullable(2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(toUInt128(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 345 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 346 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 347 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toLowCardinality(toNullable(toUInt256(3))), toNullable(2)) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toLowCardinality(toNullable(toUInt256(3))), toNullable(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toLowCardinality(toNullable(toUInt256(3))), toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 348 out of 1000 EXPLAIN AST graph = true SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, toNullable(2)) Error on processing query 'EXPLAIN AST graph = true SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 349 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt256(3), POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 351 out of 1000 SELECT toNullable(2), POW(3, 2), power(toUInt256(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt256(materialize(3)), POW(3, 2) Error on processing query 'SELECT toNullable(2), POW(3, 2), power(toUInt256(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt256(materialize(3)), POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), POW(3, 2), power(toUInt256(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), toUInt256(materialize(3)), POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 352 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(3, 2), toUInt256(3), POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 SELECT toNullable(2), POW(3, materialize(2)), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(3, 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 SELECT toNullable(2), POW(3, 2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(toLowCardinality(3)), 2), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(toLowCardinality(3)), 2), 3, POW(3, materialize(2)) Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 SELECT toNullable(toUInt128(2)), power(3, 2), POW(POW(3, 2), 3, materialize(2)), power(toLowCardinality(3), 3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2)) Error on processing query 'SELECT toNullable(toUInt128(2)), power(3, 2), POW(POW(3, 2), 3, materialize(2)), power(toLowCardinality(3), 3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable(toUInt128(2)), power(3, 2), POW(POW(3, 2), 3, materialize(2)), power(toLowCardinality(3), 3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 359 out of 1000 SELECT toNullable(toUInt128(2)), power(toLowCardinality(3), 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) PREWHERE materialize(2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(toLowCardinality(3)), 2), 3, POW(3, materialize(2)) Error on processing query 'SELECT toNullable(toUInt128(2)), power(toLowCardinality(3), 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) PREWHERE materialize(2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(toLowCardinality(3)), 2), 3, POW(3, materialize(2))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 360 out of 1000 SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(toNullable(toUInt256(2)))), power(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(toLowCardinality(3)), 2), 3, POW(3, materialize(2)) Error on processing query 'SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(toNullable(toUInt256(2)))), power(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(toLowCardinality(3)), 2), 3, POW(3, materialize(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(toNullable(toUInt256(2)))), power(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(toLowCardinality(toLowCardinality(3)), 2), 3, POW(3, materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 361 out of 1000 SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(toLowCardinality(2), 2)), power(3, POW(3, 2), 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(POW(toLowCardinality(3), toNullable(power(materialize(3), 2), 2)), toLowCardinality(3), 2), 3, POW(3, materialize(2)) Error on processing query 'SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(toLowCardinality(2), 2)), power(3, POW(3, 2), 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(POW(toLowCardinality(3), toNullable(power(materialize(3), 2), 2)), toLowCardinality(3), 2), 3, POW(3, materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(toLowCardinality(2), 2)), power(3, POW(3, 2), 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(POW(toLowCardinality(3), toNullable(power(materialize(3), 2), 2)), toLowCardinality(3), 2), 3, POW(3, materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 362 out of 1000 SELECT toNullable(toUInt128(2)), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2)) Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2)) Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, materialize(toLowCardinality(3), 2)), power(3, 2), POWER(2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2)) Error on processing query 'SELECT toNullable(2), power(3, 2), POW(3, materialize(toLowCardinality(3), 2)), power(3, 2), POWER(2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toNullable(2), power(3, 2), POW(3, materialize(toLowCardinality(3), 2)), power(3, 2), POWER(2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 365 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toNullable(3))) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toNullable(3))) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), materialize(2)) Got boring AST Fuzzing step 367 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toNullable(3))) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), materialize(2)) Got boring AST Fuzzing step 368 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(3)) WITH TOTALS Error on processing query 'SELECT toNullable(2), power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 369 out of 1000 SELECT toNullable(2), power(3, 2), POW(toLowCardinality(3), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toNullable(3))) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 SELECT toNullable(2), power(3, 2), POW(toLowCardinality(toUInt128(3)), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), materialize(2)) Error on processing query 'SELECT toNullable(2), power(3, 2), POW(toLowCardinality(toUInt128(3)), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), materialize(2))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toNullable(2), power(3, 2), POW(toLowCardinality(toUInt128(3)), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 371 out of 1000 SELECT toNullable(2), power(toUInt256(3), 2), POW(toLowCardinality(3), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), 2) Error on processing query 'SELECT toNullable(2), power(toUInt256(3), 2), POW(toLowCardinality(3), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), power(toUInt256(3), 2), POW(toLowCardinality(3), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(toLowCardinality(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 372 out of 1000 SELECT 2, power(3, materialize(2)), POW(toLowCardinality(3), materialize(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toNullable(3))) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), toLowCardinality(2))), (3), (POW(toLowCardinality(3), materialize(2)))) Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 SELECT 2, power(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toNullable(3))) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), toLowCardinality(2))), (3), (POW(3, materialize(2)))) Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT 2, power(3, materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (3), (POW(3, toLowCardinality(2))), (3), (POW(3, materialize(2)))) Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT 2, power(3, materialize(2)), POW(materialize(materialize(3)), 3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (materialize(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, materialize(2)))) Error on processing query 'SELECT 2, power(3, materialize(2)), POW(materialize(materialize(3)), 3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((materialize(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(3, materialize(2)), POW(materialize(materialize(3)), 3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((materialize(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 376 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 SELECT 2, power(toLowCardinality(3), toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toLowCardinality(3), toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(toLowCardinality(3), toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 378 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, power(toNullable(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, power(toNullable(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 379 out of 1000 SELECT materialize(2), power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toNullable(materialize(2)), toLowCardinality(2))), (3), (POW(3, 2))) Error on processing query 'SELECT materialize(2), power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toNullable(materialize(2)), toLowCardinality(2))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(2), power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toNullable(materialize(2)), toLowCardinality(2))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 380 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Got boring AST Fuzzing step 381 out of 1000 SELECT 2, power(toNullable(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toUInt128(3))) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, toUInt256(2)))) Error on processing query 'SELECT 2, power(toNullable(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toUInt128(3))) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, toUInt256(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, power(toNullable(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toUInt128(3))) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, toUInt256(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 382 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Got boring AST Fuzzing step 383 out of 1000 SELECT 2, power(toNullable(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) PREWHERE power(materialize(3), 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) PREWHERE power(materialize(3), 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 384 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) WITH ROLLUP Error on processing query 'SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 385 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Got boring AST Fuzzing step 386 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, power(toUInt256(3), 2), toLowCardinality(2))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, power(toUInt256(3), 2), toLowCardinality(2))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, power(toUInt256(3), 2), toLowCardinality(2))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 388 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), materialize(2)), POW(2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(toNullable(3), materialize(2)), POW(2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 389 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(toUInt128(2), materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3))) Error on processing query 'SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(toUInt128(2), materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(toUInt128(2), materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 390 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Got boring AST Fuzzing step 391 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(toUInt128(3), 2))) Error on processing query 'SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(toUInt128(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, power(toNullable(3), materialize(2)), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, toLowCardinality(2))), (3), (POW(toUInt128(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 392 out of 1000 SELECT 2, power(toNullable(3), materialize(2)), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (3), (POW(3, toLowCardinality(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT 2, power(toNullable(toNullable(toUInt128(2)), 3), 2), POW(toLowCardinality(3), toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(toNullable(toUInt128(2)), 3), 2), POW(toLowCardinality(3), toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 2, power(toNullable(toNullable(toUInt128(2)), 3), 2), POW(toLowCardinality(3), toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 395 out of 1000 SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 396 out of 1000 SELECT toNullable(2), power(toNullable(3), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(3) WITH TOTALS Error on processing query 'SELECT toNullable(2), power(toNullable(3), 2), POW(toLowCardinality(3), 2), power(3, 2), POWER(3, 2) WHERE materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 397 out of 1000 SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), toNullable(2)), power(3), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), toNullable(2)), power(3), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), toNullable(2)), power(3), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 398 out of 1000 SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), POWER(toLowCardinality(3), 2), toNullable(2)), power(3, 2), toUInt128(2), POWER(3, 2) PREWHERE materialize(3) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), POWER(toLowCardinality(3), 2), toNullable(2)), power(3, 2), toUInt128(2), POWER(3, 2) PREWHERE materialize(3) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(toNullable(3), 2), POW(toLowCardinality(3), POWER(toLowCardinality(3), 2), toNullable(2)), power(3, 2), toUInt128(2), POWER(3, 2) PREWHERE materialize(3) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 399 out of 1000 SELECT 2, power(toNullable(3), 2), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT 2, power(toNullable(3), 2), POW(toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toUInt256(3))) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) WITH TOTALS Error on processing query 'SELECT 2, power(toNullable(3), 2), POW(toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(materialize(toUInt256(3))) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 401 out of 1000 SELECT 2, power(toNullable(3), 2), POW(3, toNullable(2)), power(3), POWER(3, toUInt256(2)) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), 2), POW(3, toNullable(2)), power(3), POWER(3, toUInt256(2)) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(toNullable(3), 2), POW(3, toNullable(2)), power(3), POWER(3, toUInt256(2)) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 402 out of 1000 SELECT 2, power(3, 2), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT 2, power(materialize(3), 2), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(2))) Error on processing query 'SELECT 2, power(materialize(3), 2), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(materialize(3), 2), POW(3, toNullable(2)), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 404 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 406 out of 1000 SELECT 2, power(materialize(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 SELECT 2, power(materialize(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 408 out of 1000 SELECT 2, power(materialize(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (materialize(toUInt128(3))), (POW(3)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(materialize(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((materialize(toUInt128(3))), (POW(3)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(materialize(3), 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((materialize(toUInt128(3))), (POW(3)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 409 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 411 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (toUInt256(3)), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (toUInt256(3)), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(materialize(toUInt256(3)), 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(toNullable(toLowCardinality(3)), pow(3, 2), 2)), (toUInt256(3)), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(materialize(toUInt256(3)), 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(toNullable(toLowCardinality(3)), pow(3, 2), 2)), (toUInt256(3)), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(materialize(toUInt256(3)), 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(toNullable(toLowCardinality(3)), pow(3, 2), 2)), (toUInt256(3)), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 414 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (toUInt256(3)), (POW(3, 2))) Got boring AST Fuzzing step 415 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 417 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), toNullable(2))), (3), (POW(2))) Error on processing query 'SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), toNullable(2))), (3), (POW(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), toNullable(2))), (3), (POW(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 418 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 419 out of 1000 SELECT 2, power(3, 2), POW(3), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(3), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(3, 2), POW(3), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 420 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 421 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, toLowCardinality(2)), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) PREWHERE toNullable(2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) PREWHERE toNullable(2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 SELECT 2, power(3, toNullable(2)), POW(3, 2), power(3, 2), POW(3, toLowCardinality(2)), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, toLowCardinality(2)), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT 2, power(3, 2), POW(2), power(3, 2), POW(3, toLowCardinality(2)), POWER(toUInt128(3), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(2), power(3, 2), POW(3, toLowCardinality(2)), POWER(toUInt128(3), 2) GROUP BY GROUPING SETS ((toNullable(3)), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, power(3, 2), POW(2), power(3, 2), POW(3, toLowCardinality(2)), POWER(toUInt128(3), 2) GROUP BY GROUPING SETS ((toNullable(3)), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 426 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, toLowCardinality(POWER(3, 2), 2)), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, toLowCardinality(POWER(3, 2), 2)), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, toLowCardinality(POWER(3, 2), 2)), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 427 out of 1000 SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN PIPELINE SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, 2), POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(toUInt128(3), 2))) Error on processing query 'EXPLAIN PIPELINE SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, 2), POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(toUInt128(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, 2), POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(toUInt128(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 429 out of 1000 SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) WITH TOTALS Error on processing query 'SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 430 out of 1000 SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, materialize(2)), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toUInt256(2))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, materialize(2)), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toUInt256(2))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, materialize(2)), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toUInt256(2))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 431 out of 1000 SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, toLowCardinality(3), 2), POW(materialize(3), 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, toLowCardinality(3), 2), POW(materialize(3), 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(3, 2), POW(materialize(3), 2), power(3, toLowCardinality(3), 2), POW(materialize(3), 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 433 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 435 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 436 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 437 out of 1000 SELECT 2, power(toNullable(3), 2), POW(3, toUInt128(2)), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), 2), POW(3, toUInt128(2)), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, power(toNullable(3), 2), POW(3, toUInt128(2)), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 438 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (materialize(3)), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(materialize(toNullable(3)), 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (materialize(3)), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(materialize(toNullable(3)), 2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(toNullable(materialize(3))), 2), POW(3, 2), POWER(materialize(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(materialize(3)), 2), POW(3, 2), POWER(materialize(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT 2, power(toLowCardinality(3), materialize(2)), POW(3, 2), power(materialize(materialize(3)), 2), POW(3, 2), POWER(materialize(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toLowCardinality(2)))), (3), (POW(POWER(3, 2), 3, 2))) Error on processing query 'SELECT 2, power(toLowCardinality(3), materialize(2)), POW(3, 2), power(materialize(materialize(3)), 2), POW(3, 2), POWER(materialize(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(toLowCardinality(2)))), (3), (POW(POWER(3, 2), 3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(toLowCardinality(3), materialize(2)), POW(3, 2), power(materialize(materialize(3)), 2), POW(3, 2), POWER(materialize(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(toLowCardinality(2)))), (3), (POW(POWER(3, 2), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 444 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(materialize(3)), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('2'): 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 446 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 448 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 449 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, materialize(2)), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toUInt128(3), toLowCardinality(2)))) Error on processing query 'SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, materialize(2)), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(toUInt128(3), toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, materialize(2)), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(toUInt128(3), toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 450 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, 2))) WITH CUBE Error on processing query 'SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 451 out of 1000 SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) WITH ROLLUP Error on processing query 'SELECT 2, power(3, materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 452 out of 1000 SELECT 2, power(materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(toUInt256(2))))) WITH ROLLUP Error on processing query 'SELECT 2, power(materialize(toLowCardinality(2))), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(toUInt256(2))))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 453 out of 1000 SELECT 2, power(3, materialize(2)), POW(3, 2), power(materialize(3), 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT 2, power(3, materialize(2)), POW(power(materialize(toNullable(toNullable(3))), 2), 3, 2), power(materialize(3), 2), POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, power(3, materialize(2)), POW(power(materialize(toNullable(toNullable(3))), 2), 3, 2), power(materialize(3), 2), POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(3, materialize(2)), POW(power(materialize(toNullable(toNullable(3))), 2), 3, 2), power(materialize(3), 2), POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 455 out of 1000 SELECT 2, power(3, materialize(2)), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT 2, power(3, 2), POW(3, 2), POW(toNullable(toUInt128(2)), 3), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, power(3, 2), POW(3, 2), POW(toNullable(toUInt128(2)), 3), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, power(3, 2), POW(3, 2), POW(toNullable(toUInt128(2)), 3), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 458 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 459 out of 1000 SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(power(3, 2), 3, 2)), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(power(3, 2), 3, 2)), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(power(3, 2), 3, 2)), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 460 out of 1000 SELECT toNullable(toUInt256(2)), power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT toNullable(toUInt256(2)), power(3, 2), POW(3, 2), power(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, 2), power(3, 2), POW(3, toLowCardinality(2)), POWER(3, materialize(2)) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, 2), POW(3, toLowCardinality(2)), POWER(3, materialize(2)) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT 2, power(3, POWER(materialize(toNullable(3)), 2), 2), POW(3, 2), POWER(3, materialize(2)) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(3, POWER(materialize(toNullable(3)), 2), 2), POW(3, 2), POWER(3, materialize(2)) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, materialize(toNullable(2)))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, power(3, POWER(materialize(toNullable(3)), 2), 2), POW(3, 2), POWER(3, materialize(2)) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, materialize(toNullable(2)))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 465 out of 1000 SELECT toNullable(2), power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 EXPLAIN PIPELINE SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(POWER(toLowCardinality(3), 2), toNullable(2)))), (materialize(3)), (POW(3, 2))) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, materialize(POWER(toLowCardinality(3), 2), toNullable(2)))), (materialize(3)), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 467 out of 1000 SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 EXPLAIN PIPELINE SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 EXPLAIN AST SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 EXPLAIN AST SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(3, 2))) Got boring AST Fuzzing step 471 out of 1000 SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (toLowCardinality(3)), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT 2, power(3, 2), POW(3, 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (toLowCardinality(3)), (POW(3, 2))) Got boring AST Fuzzing step 473 out of 1000 SELECT 2, power(3, 2), POW(3, 2), POW(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT 2, power(toNullable(3), 2), POW(3, 2), POW(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, power(toNullable(3), 2), POW(3, 2), POW(3, toNullable(2)), POWER(3, 2) PREWHERE power(materialize(materialize(3)), 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, power(toNullable(3), 2), POW(3, 2), POW(3, toNullable(2)), POWER(3, 2) PREWHERE power(materialize(materialize(3)), 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 476 out of 1000 SELECT toNullable(2), power(toNullable(3), 2), POW(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT toNullable(2), power(toNullable(3), 2), POW(3, toNullable(2)), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 478 out of 1000 SELECT toNullable(2), power(toNullable(3), 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT toNullable(2), power(toNullable(3), 2), POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(power(toNullable(3), toLowCardinality(2)), 3), 2), POWER(3, 2) WHERE materialize(toLowCardinality(2), 3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, materialize(2))), (3), (POW(3, 2))) Error on processing query 'SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(power(toNullable(3), toLowCardinality(2)), 3), 2), POWER(3, 2) WHERE materialize(toLowCardinality(2), 3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, materialize(2))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(power(toNullable(3), toLowCardinality(2)), 3), 2), POWER(3, 2) WHERE materialize(toLowCardinality(2), 3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, materialize(2))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 482 out of 1000 SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(toUInt256(3)), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(toUInt256(3)), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(toUInt256(3)), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 483 out of 1000 SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 484 out of 1000 SELECT 2, power(toNullable(3), toNullable(materialize(toUInt256(2)))), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, power(toNullable(3), toNullable(materialize(toUInt256(2)))), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, power(toNullable(3), toNullable(materialize(toUInt256(2)))), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 485 out of 1000 SELECT toNullable(2), power(toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 486 out of 1000 SELECT toNullable(2), power(pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(toNullable(toUInt256(2)), 3)), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT toNullable(2), power(pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(toNullable(toUInt256(2)), 3)), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable(2), power(pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(toNullable(toUInt256(2)), 3)), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 487 out of 1000 SELECT 2, power(toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(toUInt256(3), 2)), (3), (POW(2))) Error on processing query 'SELECT 2, power(toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(toUInt256(3), 2)), (3), (POW(2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, power(toNullable(3), toNullable(2)), POW(toNullable(3), 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(toUInt256(3), 2)), (3), (POW(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 488 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 490 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 491 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT 2, POW(3, 2), POWER(3, POW(materialize(3), 2), 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, POW(materialize(3), 2), 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, POW(materialize(3), 2), 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 493 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toUInt256(3), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toUInt256(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 ('2'): 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY 3, POW(3, 2), 3, POW(toUInt256(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 494 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 495 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 496 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 497 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 498 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 499 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 500 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 501 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT 2, POW(3, 2), POWER(3, materialize(toNullable(toUInt256(2)))) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (toUInt128(3)), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, materialize(toNullable(toUInt256(2)))) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (toUInt128(3)), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, materialize(toNullable(toUInt256(2)))) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (toUInt128(3)), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 503 out of 1000 SELECT 2, POWER(3, materialize(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POWER(3, materialize(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, POWER(3, materialize(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 504 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 505 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 506 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 507 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 508 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 509 out of 1000 SELECT 2, POWER(materialize(3), 2) GROUP BY GROUPING SETS ( (materialize(3)), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POWER(materialize(3), 2) GROUP BY GROUPING SETS ((materialize(3)), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, POWER(materialize(3), 2) GROUP BY GROUPING SETS ((materialize(3)), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 510 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 511 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 512 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 513 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, materialize(toNullable(2))))) Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT 2, POW(3, toUInt128(2)), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, materialize(toNullable(2))))) Error on processing query 'SELECT 2, POW(3, toUInt128(2)), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, materialize(toNullable(2)))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, toUInt128(2)), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, materialize(toNullable(2))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 515 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2), 2)), (3), (POW(materialize(toNullable(2))))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2), 2)), (3), (POW(materialize(toNullable(2)))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2), 2)), (3), (POW(materialize(toNullable(2))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 516 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toUInt128(3), toNullable(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toUInt128(3), toNullable(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toUInt128(3), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 518 out of 1000 EXPLAIN actions = true, indexes = true, optimize = true SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, toNullable(2)))) Error on processing query 'EXPLAIN actions = true, indexes = true, optimize = true SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), 2)), (3), (POW(3, toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 519 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT 2, POW(toUInt256(3), 3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) WITH CUBE Error on processing query 'SELECT 2, POW(toUInt256(3), 3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 522 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 523 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toNullable(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 525 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE POW(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE POW(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 527 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 528 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 530 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 531 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 532 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 533 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 534 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 536 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 537 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 539 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT 2, POW(3, toUInt256(2)), POWER(toLowCardinality(3)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), toNullable(2))), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, POW(3, toUInt256(2)), POWER(toLowCardinality(3)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), toNullable(2))), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, toUInt256(2)), POWER(toLowCardinality(3)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), toNullable(2))), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 541 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 542 out of 1000 SELECT 2, POW(toLowCardinality(toUInt256(3)), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, POW(toLowCardinality(toUInt256(3)), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(toLowCardinality(toUInt256(3)), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 543 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 544 out of 1000 SELECT 2, POW(materialize(toLowCardinality(3)), 2), POWER(3, 2) PREWHERE pow(materialize(pow(3, 2), toLowCardinality(3)), 3, materialize(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, POW(materialize(toLowCardinality(3)), 2), POWER(3, 2) PREWHERE pow(materialize(pow(3, 2), toLowCardinality(3)), 3, materialize(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 2, POW(materialize(toLowCardinality(3)), 2), POWER(3, 2) PREWHERE pow(materialize(pow(3, 2), toLowCardinality(3)), 3, materialize(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 545 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 546 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 547 out of 1000 SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 548 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(3, 2)), (3), (POW(3))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(3, 2)), (3), (POW(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 549 out of 1000 SELECT 2, POW(3, materialize(toUInt128(2))), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, POW(3, materialize(toUInt128(2))), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, materialize(toUInt128(2))), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 550 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 551 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 552 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 553 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(toUInt128(2), 2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(toUInt128(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 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(toUInt128(2), 2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 554 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 555 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 556 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(2)), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(2)), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(2)), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 557 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 558 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 559 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 560 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 561 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 562 out of 1000 SELECT 2, POW(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, POW(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 563 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(pow(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2)), (3), (POW(3, toLowCardinality(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(pow(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2)), (3), (POW(3, toLowCardinality(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(pow(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2)), (3), (POW(3, toLowCardinality(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 564 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toLowCardinality(toLowCardinality(toUInt256(2)))))) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toLowCardinality(toLowCardinality(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 565 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 566 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 EXPLAIN json = true, sorting = true SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(materialize(toUInt256(3)), toLowCardinality(2)))) Error on processing query 'EXPLAIN json = true, sorting = true SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (3), (POW(materialize(toUInt256(3)), toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 569 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(toNullable(toUInt128(2))))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), materialize(toNullable(toUInt128(2))))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), materialize(toNullable(toUInt128(2))))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 570 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(3, toLowCardinality(2)))) Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(3, toLowCardinality(2)))) Got boring AST Fuzzing step 572 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(3, 2))) Got boring AST Fuzzing step 574 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), toUInt128(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(materialize(3)), materialize(2))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(3), toUInt128(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(materialize(3)), materialize(2))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toNullable(3), toUInt128(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(materialize(3)), materialize(2))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 575 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(materialize(toLowCardinality(3)), 2))) Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(materialize(toLowCardinality(power(toNullable(3), toNullable(2)), 3)), 2))) Error on processing query 'SELECT toNullable(2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(materialize(toLowCardinality(power(toNullable(3), toNullable(2)), 3)), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toNullable(2), POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), materialize(2))), (3), (POW(materialize(toLowCardinality(power(toNullable(3), toNullable(2)), 3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 577 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(materialize(toLowCardinality(3)), 2))) Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT 2, POW(3, 2), POWER(3, POWER(toLowCardinality(3), toNullable(2)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(materialize(toLowCardinality(3)), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, POWER(toLowCardinality(3), toNullable(2)), 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(materialize(toLowCardinality(3)), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, POWER(toLowCardinality(3), toNullable(2)), 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(materialize(toLowCardinality(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 579 out of 1000 SELECT 2, POW(3, 2), POWER(3) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toLowCardinality(2)))), (3), (POW(materialize(toLowCardinality(3)), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3) GROUP BY GROUPING SETS ((3), (POW(3, materialize(toLowCardinality(2)))), (3), (POW(materialize(toLowCardinality(3)), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3) GROUP BY GROUPING SETS ((3), (POW(3, materialize(toLowCardinality(2)))), (3), (POW(materialize(toLowCardinality(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 580 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(toLowCardinality(toNullable(toUInt128(3)))))), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(materialize(toLowCardinality(toNullable(toUInt128(3)))))), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(materialize(toLowCardinality(toNullable(toUInt128(3)))))), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 583 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 584 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 585 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 586 out of 1000 SELECT 2, POW(3, 2), POWER(toUInt256(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toUInt256(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toUInt256(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 587 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(2))), (3), (POW(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(materialize(2))), (3), (POW(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(materialize(2))), (3), (POW(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 588 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 589 out of 1000 SELECT 2, POW(3, materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, POW(3, materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, materialize(2))), (3), (POW(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 590 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 593 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 594 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 595 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 596 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 598 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(power(toNullable(toUInt128(3)), 2), 2))), (3), (POW(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(power(toNullable(toUInt128(3)), 2), 2))), (3), (POW(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, toNullable(power(toNullable(toUInt128(3)), 2), 2))), (3), (POW(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 599 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 600 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 601 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(3, 2))) Got boring AST Fuzzing step 603 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 605 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toUInt128(2)))) Error on processing query 'SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toUInt128(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(materialize(3), 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toUInt128(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 606 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, materialize(2)))) Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, materialize(2)))) Got boring AST Fuzzing step 608 out of 1000 SELECT 2, POW(materialize(toLowCardinality(toUInt256(3))), 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, materialize(2)))) Error on processing query 'SELECT 2, POW(materialize(toLowCardinality(toUInt256(3))), 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, materialize(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(materialize(toLowCardinality(toUInt256(3))), 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 609 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, materialize(2)))) Got boring AST Fuzzing step 610 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(pow(pow(3, 2), 3, 2), 3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(pow(pow(3, 2), 3, 2), 3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(toNullable(pow(pow(3, 2), 3, 2), 3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 611 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT 2, POW(3, power(toNullable(3), toNullable(2)), 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, power(toNullable(3), toNullable(2)), 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, power(toNullable(3), toNullable(2)), 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 613 out of 1000 SELECT 2, POWER(3, 2) PREWHERE POWER(toLowCardinality(3)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POWER(3, 2) PREWHERE POWER(toLowCardinality(3)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POWER(3, 2) PREWHERE POWER(toLowCardinality(3)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 614 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 615 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 616 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 617 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(POWER(materialize(toLowCardinality(3)), 2), toNullable(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT toUInt256(2), POW(3, 2), POWER(POWER(materialize(toLowCardinality(3)), 2), toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toUInt256(2), POW(3, 2), POWER(POWER(materialize(toLowCardinality(3)), 2), toNullable(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 619 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(toNullable(3), POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (POW(toUInt128(3), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT toUInt256(2), POW(3, 2), POWER(toNullable(3), POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (POW(toUInt128(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toUInt256(2), POW(3, 2), POWER(toNullable(3), POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (POW(toUInt128(3), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 620 out of 1000 SELECT POW(3, 2), POWER(toNullable(materialize(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT POW(3, 2), POWER(toNullable(materialize(3)), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), POWER(toNullable(materialize(3)), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 621 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(POWER(toLowCardinality(3), toNullable(2)), 3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(POWER(toLowCardinality(3), toNullable(2)), 3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(POWER(toLowCardinality(3), toNullable(2)), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 624 out of 1000 SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 625 out of 1000 SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toUInt128(3)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toUInt128(3))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, toNullable(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toUInt128(3)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 626 out of 1000 SELECT 2, POW(3, 2), POWER(3, toNullable(2)) WHERE toNullable(POW(toLowCardinality(toLowCardinality(3)), 2), toUInt128(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) WITH TOTALS Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toNullable(2)) WHERE toNullable(POW(toLowCardinality(toLowCardinality(3)), 2), toUInt128(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 627 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 SELECT 2, POW(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, POW(3, 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 629 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 630 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(materialize(3), 2))) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(materialize(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 631 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 632 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT 2, POW(toUInt256(3), 2), POWER(materialize(toNullable(3)), 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(toUInt256(3), 2), POWER(materialize(toNullable(3)), 2) GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(toUInt256(3), 2), POWER(materialize(toNullable(3)), 2) GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 634 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 635 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Error on processing query 'EXPLAIN SYNTAX SELECT 2, POW(2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: While processing 2, pow(2), pow(3, 2): While processing SELECT 2, pow(2), pow(3, 2) GROUP BY GROUPING SETS ((3), (pow(materialize(3), 2)), (3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 15. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 18. ./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&) @ 0x000000001773fb78 19. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 20. ./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 @ 0x0000000017db1e81 21. ./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) @ 0x0000000017daa783 22. ./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) @ 0x0000000017da634c 23. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 25. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 26. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 27. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 29. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 30. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 636 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 637 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 638 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 639 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 640 out of 1000 SELECT toLowCardinality(toUInt128(2)), POW(3, 2), POWER(3, toUInt128(2)) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT toLowCardinality(toUInt128(2)), POW(3, 2), POWER(3, toUInt128(2)) GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality(toUInt128(2)), POW(3, 2), POWER(3, toUInt128(2)) GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 641 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 642 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 644 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 645 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 647 out of 1000 SELECT toUInt256(2), POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(materialize(toLowCardinality(3)), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT toUInt256(2), POW(toLowCardinality(3), 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(materialize(toLowCardinality(3)), 2)), (3), (POW(toUInt128(3), 2))) Error on processing query 'SELECT toUInt256(2), POW(toLowCardinality(3), 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(materialize(toLowCardinality(3)), 2)), (3), (POW(toUInt128(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toUInt256(2), POW(toLowCardinality(3), 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(materialize(toLowCardinality(3)), 2)), (3), (POW(toUInt128(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 649 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(toLowCardinality(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (POW(toLowCardinality(toUInt128(3)), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(toLowCardinality(toUInt128(3)), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (POW(toLowCardinality(toUInt128(3)), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 651 out of 1000 SELECT POWER(3, toNullable(2)), 2, POW(3, 2) GROUP BY toLowCardinality(3), POW(toLowCardinality(toUInt256(3)), 2), toLowCardinality(3), POW(3, 2) Error on processing query 'SELECT POWER(3, toNullable(2)), 2, POW(3, 2) GROUP BY toLowCardinality(3), POW(toLowCardinality(toUInt256(3)), 2), toLowCardinality(3), POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(3, toNullable(2)), 2, POW(3, 2) GROUP BY toLowCardinality(3), POW(toLowCardinality(toUInt256(3)), 2), toLowCardinality(3), POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 652 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 653 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT 2, POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(3, 2))) Error on processing query 'SELECT 2, POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 655 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(3, 2))) Got boring AST Fuzzing step 656 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(toNullable(toUInt128(3))), 2)), (materialize(toNullable(3))), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(toNullable(toUInt128(3))), 2)), (materialize(toNullable(3))), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(toNullable(toUInt128(3))), 2)), (materialize(toNullable(3))), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 657 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (materialize(3)), (POW(3))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (materialize(3)), (POW(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(3, 2)), (materialize(3)), (POW(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2), toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (toNullable(3)), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2), toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (toNullable(3)), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2), toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (toNullable(3)), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 659 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(toUInt256(2))) GROUP BY 3, POW(3, 2), materialize(toNullable(3)), POW(3, 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(toUInt256(2))) GROUP BY 3, POW(3, 2), materialize(toNullable(3)), POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, toLowCardinality(toUInt256(2))) GROUP BY 3, POW(3, 2), materialize(toNullable(3)), POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 660 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(3, 2))) Got boring AST Fuzzing step 661 out of 1000 SELECT 2, POW(toLowCardinality(3), 2), POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(pow(3, 2), 3, 2))) Error on processing query 'SELECT 2, POW(toLowCardinality(3), 2), POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(pow(3, 2), 3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(toLowCardinality(3), 2), POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(pow(3, 2), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 662 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), 2)), (materialize(toNullable(3))), (POW(3, 2))) Got boring AST Fuzzing step 663 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(3), materialize(toNullable(2)))), (materialize(toNullable(3))), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (materialize(toNullable(3))), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (materialize(toNullable(3))), (POW(3, 2))) Got boring AST Fuzzing step 666 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (materialize(toNullable(3))), (POW(3, 2))) Got boring AST Fuzzing step 667 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (materialize(toNullable(3))), (POW(3, 2))) Got boring AST Fuzzing step 668 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY GROUPING SETS ( (3), (POW(3, materialize(toNullable(2)))), (materialize(toNullable(3))), (POW(3, 2))) Got boring AST Fuzzing step 669 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (materialize(toNullable(3))), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (toNullable(3)), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toUInt128(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toUInt128(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toUInt128(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 673 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 65535 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 65535 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 674 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 675 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 676 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 677 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 256 GROUP BY GROUPING SETS ( (3), (POW(materialize(toNullable(3)), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 256 GROUP BY GROUPING SETS ((3), (POW(materialize(toNullable(3)), 2)), (3), (POW(3, 2)))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 678 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 680 out of 1000 SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 681 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 682 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 683 out of 1000 SELECT 2, POW(3, 2), POWER(2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 684 out of 1000 SELECT 2, POW(2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(2), POWER(3, toLowCardinality(2)) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 685 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 686 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(materialize(3)), 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(toLowCardinality(3), 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(POWER(3, toNullable(2)), 3, 2)), (toNullable(toUInt128(3))), (POW(toUInt256(3), 2))) Error on processing query 'SELECT 2, POW(materialize(3), 2), POWER(toLowCardinality(3), 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(POWER(3, toNullable(2)), 3, 2)), (toNullable(toUInt128(3))), (POW(toUInt256(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(materialize(3), 2), POWER(toLowCardinality(3), 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(POWER(3, toNullable(2)), 3, 2)), (toNullable(toUInt128(3))), (POW(toUInt256(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 689 out of 1000 SELECT 2, POW(power(3, materialize(toLowCardinality(2))), toUInt128(3), toLowCardinality(toNullable(toUInt256(2)))), POWER(toLowCardinality(materialize(3)), 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(toLowCardinality(toNullable(3)), 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(power(3, materialize(toLowCardinality(2))), toUInt128(3), toLowCardinality(toNullable(toUInt256(2)))), POWER(toLowCardinality(materialize(3)), 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(toNullable(3)), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(power(3, materialize(toLowCardinality(2))), toUInt128(3), toLowCardinality(toNullable(toUInt256(2)))), POWER(toLowCardinality(materialize(3)), 2) WHERE 2 GROUP BY GROUPING SETS ((3), (POW(toLowCardinality(toNullable(3)), 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(materialize(3)), 2) WHERE 2 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 691 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toLowCardinality(toNullable(3)), 2))) Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) PREWHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toLowCardinality(toNullable(3)), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(3), 2) PREWHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toLowCardinality(toNullable(3)), 2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 693 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) PREWHERE toLowCardinality(3) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toLowCardinality(toNullable(3)), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(3), 2) PREWHERE toLowCardinality(3) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toLowCardinality(toNullable(3)), 2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 694 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) WHERE 255 GROUP BY GROUPING SETS ( (3), (POW(3, toUInt256(2))), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(3), 2) WHERE 255 GROUP BY GROUPING SETS ((3), (POW(3, toUInt256(2))), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(materialize(3), 2) WHERE 255 GROUP BY GROUPING SETS ((3), (POW(3, toUInt256(2))), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 696 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT 2, POW(3, 2) PREWHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(toNullable(3)), 2))) Error on processing query 'SELECT 2, POW(3, 2) PREWHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(toNullable(3)), 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, POW(3, 2) PREWHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(toNullable(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 698 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, toLowCardinality(2))), (3), (POW(toUInt128(toLowCardinality(3)), toNullable(3), 2))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, toLowCardinality(2))), (3), (POW(toUInt128(toLowCardinality(3)), toNullable(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 699 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Got boring AST Fuzzing step 701 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE 1048576 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE 1048576 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2)))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 702 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Got boring AST Fuzzing step 703 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(materialize(toLowCardinality(3)), 3)), 2) WHERE 100 GROUP BY GROUPING SETS ( (materialize(3)), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(materialize(toLowCardinality(3)), 3)), 2) WHERE 100 GROUP BY GROUPING SETS ((materialize(3)), (POW(3, 2)), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(materialize(toLowCardinality(3)), 3)), 2) WHERE 100 GROUP BY GROUPING SETS ((materialize(3)), (POW(3, 2)), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 704 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 257 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 257 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Got boring AST Fuzzing step 707 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Got boring AST Fuzzing step 708 out of 1000 SELECT 2, POW(3), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POW(3), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 709 out of 1000 SELECT 2, POWER(toLowCardinality(3), 2) WHERE -9223372036854775808 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POWER(toLowCardinality(3), 2) WHERE -9223372036854775808 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 2, POWER(toLowCardinality(3), 2) WHERE -9223372036854775808 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 710 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(toUInt256(3), 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(toUInt256(3), 2)), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(toUInt256(3), 2)), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 711 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Got boring AST Fuzzing step 713 out of 1000 SELECT 2, POW(3, toLowCardinality(3), 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POW(3, toLowCardinality(3), 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, toLowCardinality(3), 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 SELECT 2, POW(3, toUInt128(2)), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT 2, POW(3, toUInt128(2)), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, toUInt128(2)), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 715 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(toNullable(3)), 2)), (3), (POW(toNullable(3), 2))) Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(toNullable(3)), 2)), (3), (POW(toNullable(3), 2))) Error on processing query 'SELECT POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(materialize(toNullable(3)), 2)), (3), (POW(toNullable(3), 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(materialize(toNullable(3)), 2)), (3), (POW(toNullable(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 717 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(toNullable(3)), 2)), (3), (POW(3, toUInt128(2)))) Error on processing query 'SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(materialize(toNullable(3)), 2)), (3), (POW(3, toUInt128(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(toLowCardinality(3), 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(materialize(toNullable(3)), 2)), (3), (POW(3, toUInt128(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 718 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(3, toNullable(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(toNullable(3)), 2)), (3), (POW(toNullable(3), 2))) Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 721 out of 1000 SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 EXPLAIN AST SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 725 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 726 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 727 out of 1000 EXPLAIN AST SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toLowCardinality'): toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 730 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 EXPLAIN AST SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN AST SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 733 out of 1000 EXPLAIN AST SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 734 out of 1000 EXPLAIN AST SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 735 out of 1000 EXPLAIN SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 EXPLAIN SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Got boring AST Fuzzing step 737 out of 1000 SELECT toLowCardinality(materialize(toNullable(2))), POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, 2))) Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(3, materialize(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, toNullable(2)))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('toLowCardinality'): toLowCardinality(2), POW(3, 2), POWER(3, 2) GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 740 out of 1000 SELECT toLowCardinality(2), POW(materialize(toNullable(3)), 2), POWER(3, materialize(2)) WHERE -2147483647 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, toNullable(2)))) Error on processing query 'SELECT toLowCardinality(2), POW(materialize(toNullable(3)), 2), POWER(3, materialize(2)) WHERE -2147483647 GROUP BY GROUPING SETS ((3), (POW(materialize(3), 2)), (3), (POW(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Illegal type Int32 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 741 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(3, materialize(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(materialize(3), 2)), (3), (POW(3, toNullable(2)))) Got boring AST Fuzzing step 742 out of 1000 SELECT toLowCardinality(toNullable(2)), POW(3, 2), POWER(3, materialize(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, materialize(2)) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 1048576 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE 1048576 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toNullable(2))))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 746 out of 1000 SELECT pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), 2, POW(3, 2), POWER(3, 2) WHERE 256 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Error on processing query 'SELECT pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), 2, POW(3, 2), POWER(3, 2) WHERE 256 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), 2, POW(3, 2), POWER(3, 2) WHERE 256 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 747 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(pow(3, 2), 2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toNullable(pow(3, 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 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, toNullable(pow(3, 2), 2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 748 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Got boring AST Fuzzing step 749 out of 1000 SELECT POW(toUInt128(2), 3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, 2))) Error on processing query 'SELECT POW(toUInt128(2), 3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POW(toUInt128(2), 3, 2), POWER(3, 2) WHERE 100 GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 750 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Got boring AST Fuzzing step 752 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(3, toNullable(2)))) Got boring AST Fuzzing step 753 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toLowCardinality(toNullable(2)))), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) PREWHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toLowCardinality(2))), (3), (POW(3, toNullable(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) PREWHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, toLowCardinality(2))), (3), (POW(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 755 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (POW(3, toLowCardinality(toNullable(2)))), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (POW(3, toNullable(2))), (3), (POW(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (toUInt128(3)), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), toNullable(2)))) Got boring AST Fuzzing step 761 out of 1000 SELECT 2, POW(3, 2), POWER(toUInt256(3), 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toLowCardinality(3), toNullable(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toUInt256(3), 2) WHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toLowCardinality(3), toNullable(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toUInt256(3), 2) WHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toLowCardinality(3), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 762 out of 1000 EXPLAIN QUERY TREE run_passes = true, dump_passes = true, passes = true SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, 2)), (3), (POW(toLowCardinality(3), toNullable(2)))) Error on processing query 'EXPLAIN QUERY TREE run_passes = true, dump_passes = true, passes = true SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, 2)), (3), (POW(toLowCardinality(3), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 763 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(3, power(3, materialize(2)), toNullable(2)))) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(3, power(3, materialize(2)), toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(materialize(toLowCardinality(3)), 2) WHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(3, power(3, materialize(2)), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 764 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(3), 2))) Got boring AST Fuzzing step 766 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ( (3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(toLowCardinality(3), 3), 2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(toLowCardinality(3), 3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY GROUPING SETS ((3), (POW(3, toNullable(2))), (3), (POW(toLowCardinality(toLowCardinality(3), 3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 767 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(3), 2) Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY toUInt128(3), POW(3, toNullable(2)), 3, POW(toLowCardinality(materialize(toNullable(power(toLowCardinality(3), 3, materialize(2)), 2)), 3), materialize(toNullable(2))) Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY toUInt128(3), POW(3, toNullable(2)), 3, POW(toLowCardinality(materialize(toNullable(power(toLowCardinality(3), 3, materialize(2)), 2)), 3), materialize(toNullable(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY toUInt128(3), POW(3, toNullable(2)), 3, POW(toLowCardinality(materialize(toNullable(power(toLowCardinality(3), 3, materialize(2)), 2)), 3), materialize(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 769 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), 3), 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), 3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), 3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 770 out of 1000 SELECT 2, POW(3, 2), pow(pow(3, 2), toNullable(toUInt128(2), 3), 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(3), 2) Error on processing query 'SELECT 2, POW(3, 2), pow(pow(3, 2), toNullable(toUInt128(2), 3), 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), pow(pow(3, 2), toNullable(toUInt128(2), 3), 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 771 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(3), 2) Got boring AST Fuzzing step 772 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(3), 2) Got boring AST Fuzzing step 773 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(toLowCardinality(3), 2) Got boring AST Fuzzing step 774 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(toLowCardinality(toLowCardinality(3)), 2)), 3, POW(3, 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(toLowCardinality(toLowCardinality(3)), 2)), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(toLowCardinality(toLowCardinality(3)), 2)), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 776 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), toLowCardinality(3), 2) WHERE NULL GROUP BY toNullable(toUInt256(3)), POW(3, 2), 3, POW(3) Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(3), toLowCardinality(3), 2) WHERE NULL GROUP BY toNullable(toUInt256(3)), POW(3, 2), 3, POW(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(toNullable(3), toLowCardinality(3), 2) WHERE NULL GROUP BY toNullable(toUInt256(3)), POW(3, 2), 3, POW(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 777 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3), 3), POW(3, toLowCardinality(2)), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3), 3), POW(3, toLowCardinality(2)), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3), 3), POW(3, toLowCardinality(2)), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 778 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 779 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 781 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 782 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Got boring AST Fuzzing step 784 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Got boring AST Fuzzing step 785 out of 1000 SELECT 2, POW(3), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Error on processing query 'SELECT 2, POW(3), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 786 out of 1000 SELECT 2, POW(3, POWER(toLowCardinality(3), 2), 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2)) Error on processing query 'SELECT 2, POW(3, POWER(toLowCardinality(3), 2), 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, POWER(toLowCardinality(3), 2), 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 787 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Got boring AST Fuzzing step 789 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) PREWHERE NULL WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Error on processing query 'SELECT toNullable(2), POW(3, 2), POWER(3, 2) PREWHERE NULL WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 790 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) PREWHERE NULL WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Error on processing query 'SELECT toNullable(2), POW(3, 2), POWER(3, 2) PREWHERE NULL WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 791 out of 1000 SELECT toNullable(2), POW(materialize(3), 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT toNullable(2), POW(materialize(3), 2), POWER(2) WHERE NULL GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2)) Error on processing query 'SELECT toNullable(2), POW(materialize(3), 2), POWER(2) WHERE NULL GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(materialize(3), 2), POWER(2) WHERE NULL GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 793 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, materialize(toLowCardinality(2))) Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT 2, POW(materialize(3), 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, toLowCardinality(2)) Got boring AST Fuzzing step 796 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(materialize(toNullable(3))), POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(materialize(toNullable(3))), POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 798 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) PREWHERE 2 WHERE NULL GROUP BY toNullable(materialize(toNullable(3))), POW(3, toNullable(2)), 3, POW(3, 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) PREWHERE 2 WHERE NULL GROUP BY toNullable(materialize(toNullable(3))), POW(3, toNullable(2)), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 799 out of 1000 SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(materialize(3)), POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(materialize(3)), POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 801 out of 1000 SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY toNullable(materialize(3)), POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 802 out of 1000 SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 SELECT toLowCardinality(2), POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT 2, POW(3, 2), POWER(POWER(toLowCardinality(3), 2), 3, 2) WHERE NULL GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(POWER(toLowCardinality(3), 2), 3, 2) WHERE NULL GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(POWER(toLowCardinality(3), 2), 3, 2) WHERE NULL GROUP BY 3, POW(3, 2), 3, POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 806 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 807 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 808 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 809 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) WHERE NULL GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 810 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 813 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 815 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 817 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 819 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 EXPLAIN SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 823 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 824 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 825 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 828 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 54 ('2'): 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 830 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 831 out of 1000 SELECT POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, toNullable(2)) Error on processing query 'SELECT POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, toNullable(2))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 832 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 833 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 EXPLAIN SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 837 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 839 out of 1000 SELECT 2, POW(3), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), toLowCardinality(3), POW(toNullable(3), 2) Error on processing query 'SELECT 2, POW(3), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), toLowCardinality(3), POW(toNullable(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), toLowCardinality(3), POW(toNullable(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 840 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 842 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 843 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 844 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 846 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 SELECT 2, POW(toUInt256(3), 2), power(materialize(3), 2), POWER(toNullable(3), 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) Error on processing query 'SELECT 2, POW(toUInt256(3), 2), power(materialize(3), 2), POWER(toNullable(3), 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(toUInt256(3), 2), power(materialize(3), 2), POWER(toNullable(3), 2) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 848 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY materialize(toLowCardinality(3)), POW(3, toNullable(2)), 3, POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY materialize(toLowCardinality(3)), POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 850 out of 1000 SELECT 2, POW(2), POWER(3, 2) GROUP BY materialize(toLowCardinality(3)), POW(3, toNullable(2)), 3, POW(3, 2) Error on processing query 'SELECT 2, POW(2), POWER(3, 2) GROUP BY materialize(toLowCardinality(3)), POW(3, toNullable(2)), 3, POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(2), POWER(3, 2) GROUP BY materialize(toLowCardinality(3)), POW(3, toNullable(2)), 3, POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 851 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY materialize(toLowCardinality(3)), POW(3, toNullable(2)), 3, POW(3, 2) Got boring AST Fuzzing step 852 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(3), 2) WHERE pow(toLowCardinality(3), toNullable(3), materialize(2)) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(3), 2) WHERE pow(toLowCardinality(3), toNullable(3), materialize(2)) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(toNullable(3), 2) WHERE pow(toLowCardinality(3), toNullable(3), materialize(2)) GROUP BY 3, POW(3, toNullable(2)), 3, POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(3), POW(materialize(toNullable(3)), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(3), POW(materialize(toNullable(3)), 2) WITH CUBE Got boring AST Fuzzing step 856 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(3), POW(materialize(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) WHERE power(toNullable(2), materialize(toNullable(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(materialize(3), 2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 2, POW(3, 2), POWER(3, 2) WHERE power(toNullable(2), materialize(toNullable(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(materialize(3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) WHERE power(toNullable(2), materialize(toNullable(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(materialize(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 858 out of 1000 SELECT 2, POW(2) GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(materialize(3), 2) Error on processing query 'SELECT 2, POW(2) GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(2) GROUP BY materialize(3), POW(3, toNullable(2)), 3, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 859 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, 2), toLowCardinality(3), POW(materialize(toNullable(toUInt128(3))), 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, 2), toLowCardinality(3), POW(materialize(toNullable(toUInt128(3))), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, 2), toLowCardinality(3), POW(materialize(toNullable(toUInt128(3))), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 860 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT 2, POW(3, 2), POWER(toNullable(toUInt128(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toNullable(materialize(3)), toLowCardinality(3)), POW(materialize(3), 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toNullable(toUInt128(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toNullable(materialize(3)), toLowCardinality(3)), POW(materialize(3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toNullable(toUInt128(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toNullable(materialize(3)), toLowCardinality(3)), POW(materialize(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 862 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE Got boring AST Fuzzing step 863 out of 1000 SELECT 2, POW(3), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE Error on processing query 'SELECT 2, POW(3), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 864 out of 1000 SELECT 2, POW(POW(materialize(3), 2), 3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE Error on processing query 'SELECT 2, POW(POW(materialize(3), 2), 3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(POW(materialize(3), 2), 3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 865 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(materialize(3)), 2) WITH CUBE Got boring AST Fuzzing step 866 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(materialize(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, 2), toLowCardinality(toLowCardinality(materialize(3))), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2), 2), toLowCardinality(materialize(3)), POW(3, toUInt128(2)) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2), 2), toLowCardinality(materialize(3)), POW(3, toUInt128(2)) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, toNullable(2), 2), toLowCardinality(materialize(3)), POW(3, toUInt128(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 870 out of 1000 SELECT 2, POW(toUInt256(3), 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, 2), toLowCardinality(toLowCardinality(materialize(3))), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(toUInt256(3), 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, 2), toLowCardinality(toLowCardinality(materialize(3))), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(toUInt256(3), 2), POWER(toLowCardinality(toNullable(3)), 2) GROUP BY materialize(3), POW(3, 2), toLowCardinality(toLowCardinality(materialize(3))), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 871 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(materialize(toUInt128(3))), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(materialize(toUInt128(3))), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(materialize(toUInt128(3))), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 873 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 874 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(toUInt256(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(toUInt256(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(toUInt256(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 875 out of 1000 SELECT materialize(2), POW(3, 2), POWER(toLowCardinality(3), toUInt128(2)) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'SELECT materialize(2), POW(3, 2), POWER(toLowCardinality(3), toUInt128(2)) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT materialize(2), POW(3, 2), POWER(toLowCardinality(3), toUInt128(2)) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 876 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toUInt128(2)) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toUInt128(2)) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toUInt128(2)) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 877 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 878 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) PREWHERE POW(toLowCardinality(toNullable(3)), 2) GROUP BY 3, POW(3, 2), toLowCardinality(power(toNullable(3), toNullable(2)), 3), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) PREWHERE POW(toLowCardinality(toNullable(3)), 2) GROUP BY 3, POW(3, 2), toLowCardinality(power(toNullable(3), toNullable(2)), 3), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) PREWHERE POW(toLowCardinality(toNullable(3)), 2) GROUP BY 3, POW(3, 2), toLowCardinality(power(toNullable(3), toNullable(2)), 3), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 879 out of 1000 SELECT 2, POW(toUInt128(3), 3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(toUInt128(3), 3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(toUInt128(3), 3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 880 out of 1000 SELECT 2, POW(toLowCardinality(3), 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(toUInt128(2)) WITH CUBE Error on processing query 'SELECT 2, POW(toLowCardinality(3), 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(toUInt128(2)) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(toLowCardinality(3), 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(toUInt128(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 881 out of 1000 SELECT 2, POW(3, toNullable(2)), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(power(toNullable(3), toLowCardinality(2)), 3, toLowCardinality(2)) WITH CUBE Error on processing query 'SELECT 2, POW(3, toNullable(2)), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(power(toNullable(3), toLowCardinality(2)), 3, toLowCardinality(2)) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, toNullable(2)), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(toLowCardinality(3)), POW(power(toNullable(3), toLowCardinality(2)), 3, toLowCardinality(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 885 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(3), POW(3, 2) WITH ROLLUP WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(3), POW(3, 2) WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 216 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 886 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 887 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(3), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT 2, POW(3, 2), POWER(3, toNullable(2)), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), 3, POW(3, toLowCardinality(3), 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toNullable(2)), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), 3, POW(3, toLowCardinality(3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, toNullable(2)), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), 3, POW(3, toLowCardinality(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 889 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toLowCardinality(3), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 890 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 SELECT 2, POW(3, toUInt256(2)), POWER(3, toLowCardinality(2)) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, toUInt256(2)), POWER(3, toLowCardinality(2)) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, toUInt256(2)), POWER(3, toLowCardinality(2)) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 892 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), power(3, materialize(toLowCardinality(2))), 2) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), power(3, materialize(toLowCardinality(2))), 2) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), power(3, materialize(toLowCardinality(2))), 2) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 893 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(toUInt128(3))), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 894 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(toLowCardinality(3), 2), toLowCardinality(materialize(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY toNullable(3), POW(3, 2), toLowCardinality(materialize(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toLowCardinality(2)) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(3)), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 899 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(materialize(toLowCardinality(3)))), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(toNullable(2))) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(toLowCardinality(3))), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'SELECT 2, POW(3, 2), POWER(3, toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 902 out of 1000 SELECT pow(toLowCardinality(3), toNullable(3), materialize(2)), 2, POW(3, 2), POWER(3, toLowCardinality(toNullable(2))) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(toLowCardinality(3))), POW(3, 2) WITH CUBE Error on processing query 'SELECT pow(toLowCardinality(3), toNullable(3), materialize(2)), 2, POW(3, 2), POWER(3, toLowCardinality(toNullable(2))) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(toLowCardinality(3))), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(toLowCardinality(3), toNullable(3), materialize(2)), 2, POW(3, 2), POWER(3, toLowCardinality(toNullable(2))) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(toLowCardinality(3))), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 903 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(toNullable(2))) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(toLowCardinality(3))), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 904 out of 1000 SELECT 2, POW(3, 2), POWER(3, toLowCardinality(toNullable(2))) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(toLowCardinality(3))), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 905 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(3, 2), toLowCardinality(materialize(toLowCardinality(3))), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 2, POW(3, power(3, 2), 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 2, POW(3, power(3, 2), 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 908 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) PREWHERE pow(pow(toNullable(3), 2), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) PREWHERE pow(pow(toNullable(3), 2), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 909 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(toNullable(toUInt256(3)))), toNullable(2)) GROUP BY 3, POW(toNullable(3), toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(toNullable(toUInt256(3)))), toNullable(2)) GROUP BY 3, POW(toNullable(3), toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(toNullable(toUInt256(3)))), toNullable(2)) GROUP BY 3, POW(toNullable(3), toNullable(2)), toLowCardinality(toLowCardinality(3)), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 910 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(3, power(materialize(materialize(3)), 2), 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(3, power(materialize(materialize(3)), 2), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(3, power(materialize(materialize(3)), 2), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 912 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 913 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(2)), toLowCardinality(3), POW(3, toUInt128(2)) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(2)), toLowCardinality(3), POW(3, toUInt128(2)) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(2)), toLowCardinality(3), POW(3, toUInt128(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 915 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 916 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(3, materialize(toNullable(2))), toLowCardinality(2, 3), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(3, materialize(toNullable(2))), toLowCardinality(2, 3), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(3, materialize(toNullable(2))), toLowCardinality(2, 3), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 917 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(toLowCardinality(toUInt128(3)), 3), 2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(toLowCardinality(toUInt128(3)), 3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(toLowCardinality(toUInt128(3)), 3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 919 out of 1000 SELECT 2, POW(toLowCardinality(3), 2), POWER(toLowCardinality(toLowCardinality(toUInt128(3))), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Error on processing query 'SELECT 2, POW(toLowCardinality(3), 2), POWER(toLowCardinality(toLowCardinality(toUInt128(3))), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(toLowCardinality(3), 2), POWER(toLowCardinality(toLowCardinality(toUInt128(3))), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 920 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(2) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 921 out of 1000 EXPLAIN SYNTAX SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 924 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 925 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 926 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 927 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 928 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 929 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 930 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 55 ('2'): 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 931 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 932 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 933 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 934 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 935 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 937 out of 1000 EXPLAIN ESTIMATE SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 938 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 940 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 941 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 942 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 943 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 944 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 55 ('2'): 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 945 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 946 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 947 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 948 out of 1000 EXPLAIN SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 949 out of 1000 SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)) WITH TOTALS Error on processing query 'SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(toLowCardinality(3)), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 951 out of 1000 SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), toNullable(2)) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 952 out of 1000 SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(toNullable(3), 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT 2, POW(3, toLowCardinality(2)), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT 2, POW(3, 2), POWER(toLowCardinality(3), 2) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Got boring AST Fuzzing step 956 out of 1000 SELECT 2, POW(toLowCardinality(3), 2), POWER(3, 2) GROUP BY 3, POW(3, 2), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT 2, POW(toLowCardinality(3), 2), POWER(3, 2) GROUP BY 3, POW(3, toLowCardinality(2)), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT 2, POW(toLowCardinality(3), 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toLowCardinality(3), POW(toLowCardinality(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT 2, POW(toLowCardinality(3), 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toLowCardinality(3), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 SELECT 2, POW(toLowCardinality(3), toLowCardinality(2)), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT 2, POW(toLowCardinality(3), toLowCardinality(materialize(toLowCardinality(3)), 2)), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toNullable(3), POW(3, 2) WITH CUBE Error on processing query 'SELECT 2, POW(toLowCardinality(3), toLowCardinality(materialize(toLowCardinality(3)), 2)), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toNullable(3), POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, POW(toLowCardinality(3), toLowCardinality(materialize(toLowCardinality(3)), 2)), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), toNullable(3), POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 962 out of 1000 SELECT 2, POW(3, toLowCardinality(2)), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, toLowCardinality(2)), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, 2), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, 2), toNullable(3), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, 2), toNullable(3), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 967 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, 2), toNullable(3), POW(3, 2) WITH CUBE Got boring AST Fuzzing step 968 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, 2), toNullable(3), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY 3, POW(materialize(toLowCardinality(3)), 2), toNullable(3), POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY 3, POW(toLowCardinality(3), 2), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 EXPLAIN AST graph = true SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toUInt256(3), POW(toLowCardinality(3), 2), 3, POW(3, 2) WITH CUBE Error on processing query 'EXPLAIN AST graph = true SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toUInt256(3), POW(toLowCardinality(3), 2), 3, POW(3, 2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 972 out of 1000 SELECT toNullable(2), POW(toUInt256(3), 2), POWER(3, 2) GROUP BY 3, POW(toLowCardinality(3), power(toNullable(3), toLowCardinality(POWER(3, toNullable(materialize(materialize(toNullable(3))), 2)), 2)), 2), 3, POW(3, 2) WITH CUBE Error on processing query 'SELECT toNullable(2), POW(toUInt256(3), 2), POWER(3, 2) GROUP BY 3, POW(toLowCardinality(3), power(toNullable(3), toLowCardinality(POWER(3, toNullable(materialize(materialize(toNullable(3))), 2)), 2)), 2), 3, POW(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), POW(toUInt256(3), 2), POWER(3, 2) GROUP BY 3, POW(toLowCardinality(3), power(toNullable(3), toLowCardinality(POWER(3, toNullable(materialize(materialize(toNullable(3))), 2)), 2)), 2), 3, POW(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 973 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(toLowCardinality(3), 2), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(toLowCardinality(3), 2), 3, POW(3, 2) WITH CUBE Got boring AST Fuzzing step 975 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(toLowCardinality(3), 2), 3, POW(2) WITH CUBE Error on processing query 'SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(toLowCardinality(3), 2), 3, POW(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(toLowCardinality(3), 2), 3, POW(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 976 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(toLowCardinality(3), 2), 3, POW(3, 2) WITH CUBE Got boring AST Fuzzing step 977 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(toLowCardinality(3), 2), 3, POW(3, 2) WITH CUBE Got boring AST Fuzzing step 978 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, 2), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, materialize(2)) GROUP BY toNullable(3), POW(3, 2), 3, POW(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 SELECT toNullable(2), POW(3, 2), POWER(3, materialize(2)) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT 2, POW(3, 2), POWER(3, materialize(power(3, toNullable(2)), 2)) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3)) WITH CUBE Error on processing query 'SELECT 2, POW(3, 2), POWER(3, materialize(power(3, toNullable(2)), 2)) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3)) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(3, materialize(power(3, toNullable(2)), 2)) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 982 out of 1000 SELECT toNullable(POW(materialize(3), 2), 2), POW(3, 2), POWER(3, materialize(2)) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3), 2) WITH ROLLUP WITH CUBE Error on processing query 'SELECT toNullable(POW(materialize(3), 2), 2), POW(3, 2), POWER(3, materialize(2)) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3), 2) WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 214 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 983 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toNullable(3), POW(3, 2), 3, POW(materialize(3), 2) WITH CUBE Got boring AST Fuzzing step 985 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(materialize(3), 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(materialize(3), 2), 3, POW(materialize(3), 2) Got boring AST Fuzzing step 987 out of 1000 SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) GROUP BY 3, POW(materialize(3), 2), 3, POW(materialize(3), 2) Error on processing query 'SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) GROUP BY 3, POW(materialize(3), 2), 3, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, POW(toUInt128(3), 2), POWER(3, 2) GROUP BY 3, POW(materialize(3), 2), 3, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 988 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toUInt128(3), POW(materialize(3), 2), 3, POW(materialize(3)) Error on processing query 'SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toUInt128(3), POW(materialize(3), 2), 3, POW(materialize(3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY toUInt128(3), POW(materialize(3), 2), 3, POW(materialize(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 989 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, 2), 3, POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT 2, POW(3, 2), POWER(3, 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT 2, POW(3, 2), POWER(POWER(3, 2), toUInt128(3), 2) GROUP BY 3, POW(3, toNullable(2)), toUInt256(3), POW(materialize(toLowCardinality(toNullable(3))), 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(POWER(3, 2), toUInt128(3), 2) GROUP BY 3, POW(3, toNullable(2)), toUInt256(3), POW(materialize(toLowCardinality(toNullable(3))), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POW(3, 2), POWER(POWER(3, 2), toUInt128(3), 2) GROUP BY 3, POW(3, toNullable(2)), toUInt256(3), POW(materialize(toLowCardinality(toNullable(3))), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 992 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(materialize(3), 3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(3, 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(materialize(3), 3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 2, POW(3, 2), POWER(materialize(materialize(3), 3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 994 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(materialize(3), 2) Got boring AST Fuzzing step 995 out of 1000 SELECT 2, POW(3, toUInt256(2)), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(materialize(3), 2) Error on processing query 'SELECT 2, POW(3, toUInt256(2)), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, POW(3, toUInt256(2)), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 996 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(3), POW(materialize(3), 2) Got boring AST Fuzzing step 997 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(materialize(toLowCardinality(toUInt256(3)))), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(3, 2), toUInt256(materialize(toUInt256(3))), POW(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(2), toUInt256(materialize(toUInt256(3))), POW(materialize(3), 2) Error on processing query 'SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(2), toUInt256(materialize(toUInt256(3))), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, POW(3, 2), POWER(materialize(3), 2) GROUP BY 3, POW(2), toUInt256(materialize(toUInt256(3))), POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 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 sleep(2) FORMAT `Null` Got boring AST Fuzzing step 2 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 3 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 4 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 5 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 6 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 7 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 8 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 9 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 10 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 11 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 12 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 13 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 14 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 15 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 16 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 17 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 18 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 19 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 20 out of 1000 SELECT sleep(2) FORMAT `Null` Got boring AST Fuzzing step 21 out of 1000 SELECT toNullable(toUInt256(2)), sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT toNullable(2), sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT toNullable(2), sleep(2) FORMAT `Null` Got boring AST Fuzzing step 24 out of 1000 SELECT toNullable(2), sleep(2) FORMAT `Null` Got boring AST Fuzzing step 25 out of 1000 SELECT materialize(materialize(toNullable(3))), toNullable(2), sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT materialize(toNullable(3)), toNullable(2), sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT toNullable(3), 2, sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT toNullable(3), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 29 out of 1000 SELECT 2, sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 SELECT power(toNullable(3), toLowCardinality(2)), 2, sleep(2) WHERE toLowCardinality(toLowCardinality(3)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 SELECT power(toNullable(3), 2), 2, sleep(2) WHERE toLowCardinality(toLowCardinality(3)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT power(3, 2), 2, sleep(toNullable(3), 2) WHERE toLowCardinality(toLowCardinality(3)) FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(toNullable(3), 2) WHERE toLowCardinality(toLowCardinality(3)) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT power(3, 2), 2, sleep(toNullable(3), 2) WHERE toLowCardinality(toLowCardinality(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 33 out of 1000 SELECT power(toNullable(3), 2), 2, sleep(2) WHERE toLowCardinality(toLowCardinality(3)) FORMAT `Null` Got boring AST Fuzzing step 34 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 36 out of 1000 SELECT power(3), 2, sleep(2) FORMAT `Null` Error on processing query 'SELECT power(3), 2, sleep(2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3), 2, sleep(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 37 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 38 out of 1000 SELECT power(3, 2), 2, sleep(toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT power(3, 2), 2, sleep(toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 40 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 SELECT power(3, 2), 2, sleep(toNullable(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT power(3, 2), 2, sleep(toNullable(2)) FORMAT `Null` Got boring AST Fuzzing step 43 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 45 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 46 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 47 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 48 out of 1000 SELECT power(3, 2), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 49 out of 1000 SELECT power(3, 2), 2, sleep(materialize(2)) FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(materialize(2)) FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e12af7 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 50 out of 1000 SELECT power(3, materialize(2)), 2, sleep(2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT power(3, materialize(2)), 2, sleep(2) FORMAT `Null` Got boring AST Fuzzing step 52 out of 1000 SELECT power(3, materialize(2)), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(toLowCardinality(3)), 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 55 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(POW(3, 2), toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(POW(3, 2), toNullable(2)), POWER(materialize(3), 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(POW(3, 2), toNullable(2)), POWER(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 56 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 57 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 58 out of 1000 SELECT power(3, sleep(2), 2), 2, sleep(materialize(3), 2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Error on processing query 'SELECT power(3, sleep(2), 2), 2, sleep(materialize(3), 2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, sleep(2), 2), 2, sleep(materialize(3), 2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 59 out of 1000 SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), POWER(toLowCardinality(3), toLowCardinality(materialize(2))), 2) FORMAT `Null` Error on processing query 'SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), POWER(toLowCardinality(3), toLowCardinality(materialize(2))), 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), POWER(toLowCardinality(3), toLowCardinality(materialize(2))), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 60 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(toNullable(2)) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(toUInt256(3)), 2) FORMAT `Null` Error on processing query 'SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(toUInt256(3)), 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(toNullable(2)), POWER(materialize(toUInt256(3)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 63 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(toLowCardinality(3), 2), 2, sleep(2) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 64 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 66 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 67 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 68 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 69 out of 1000 SELECT power(toLowCardinality(3), 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) FORMAT `Null` Got boring AST Fuzzing step 70 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), POWER(toLowCardinality(3), 2), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), POWER(toLowCardinality(3), 2), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), POWER(toLowCardinality(3), 2), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 73 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 74 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT power(3, 2), 2, sleep(2) PREWHERE power(materialize(toNullable(3)), 2) WHERE POW(3, 2) GROUP BY sleep(toLowCardinality(2)), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) PREWHERE power(materialize(toNullable(3)), 2) WHERE POW(3, 2) GROUP BY sleep(toLowCardinality(2)), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 76 out of 1000 SELECT power(3, toUInt256(2)), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, toUInt256(2)), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(3, toUInt256(2)), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 77 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(materialize(2)), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(materialize(2)), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10bc8 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 78 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 79 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 80 out of 1000 SELECT power(3, 2), 2, sleep(toUInt128(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(toUInt128(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function sleep, expected UInt* or Float*: In scope SELECT power(3, 2), 2, sleep(toUInt128(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e1fc7aa 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 81 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toLowCardinality(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 84 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(POWER(3, 2), 2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(POWER(3, 2), 2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(POWER(3, 2), 2), POWER(toNullable(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 86 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 87 out of 1000 SELECT power(3, 2), 2, sleep(2) WHERE power(materialize(materialize(3))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) WHERE power(materialize(materialize(3))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), 2, sleep(2) WHERE power(materialize(materialize(3))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 89 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH ROLLUP WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH ROLLUP WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 95 ('CUBE'): CUBE FORMAT `Null`. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 90 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 91 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 92 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 93 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toUInt128(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toUInt128(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toUInt128(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 94 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 95 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 96 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 97 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 98 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 99 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 100 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 101 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 102 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 103 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 104 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 106 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 107 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 108 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toUInt256(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toUInt256(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toUInt256(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 109 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT power(materialize(3), 2), 2, sleep(2) PREWHERE POW(toLowCardinality(3), 2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(materialize(3), 2), 2, sleep(2) PREWHERE POW(toLowCardinality(3), 2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 111 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(toUInt128(3)), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(toUInt128(3)), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(toUInt128(3)), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 112 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 114 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 117 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 118 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 120 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 121 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 122 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH ROLLUP WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH ROLLUP WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 107 ('CUBE'): CUBE FORMAT `Null`. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 123 out of 1000 EXPLAIN SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 EXPLAIN SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 125 out of 1000 EXPLAIN SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 126 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 128 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 129 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 131 out of 1000 SELECT power(3, 2), 2, sleep(2) PREWHERE pow(pow(3, 2), toNullable(3), 2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) PREWHERE pow(pow(3, 2), toNullable(3), 2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), 2, sleep(2) PREWHERE pow(pow(3, 2), toNullable(3), 2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 132 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 133 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 136 out of 1000 SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 137 out of 1000 SELECT power(3, 2), 2, sleep(toNullable(2)) GROUP BY sleep(2), POWER(toNullable(3), POW(toLowCardinality(3), 2), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(toNullable(2)) GROUP BY sleep(2), POWER(toNullable(3), POW(toLowCardinality(3), 2), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), 2, sleep(toNullable(2)) GROUP BY sleep(2), POWER(toNullable(3), POW(toLowCardinality(3), 2), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 138 out of 1000 SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 139 out of 1000 SELECT power(3, 2), materialize(2), sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 140 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 142 out of 1000 SELECT power(3), 2, sleep(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3), 2, sleep(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 143 out of 1000 SELECT power(3, 2), 2, sleep(toNullable(2)) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(toNullable(2)) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), 2, sleep(toNullable(2)) GROUP BY sleep(2), POWER(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 144 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 145 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(materialize(2)), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(materialize(2)), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10bc8 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 146 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 147 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(toUInt256(3)), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(toUInt256(3)), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(toUInt256(3)), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 148 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 149 out of 1000 SELECT power(power(materialize(3), 2), materialize(3), 2), toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT power(power(materialize(3), 2), materialize(3), 2), toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(power(materialize(3), 2), materialize(3), 2), toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 150 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 152 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 153 out of 1000 SELECT power(3, 2), 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 154 out of 1000 SELECT power(3, 2), 2, toLowCardinality(toLowCardinality(3)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 157 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 158 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 159 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 160 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 165 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 167 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 169 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 170 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 171 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 173 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 174 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 175 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 176 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 177 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 178 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 180 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 181 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 182 out of 1000 EXPLAIN AST SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 183 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 185 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 186 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 188 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 189 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 193 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 194 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 195 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 196 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 197 out of 1000 EXPLAIN SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 198 out of 1000 SELECT power(3, 2), 2, toLowCardinality(3), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT power(3, 2), 2, 3, sleep(2) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, 3, sleep(2) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 200 out of 1000 SELECT power(3, 2), 2, 3, sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT power(3, 2), 2, 3, sleep(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, 3, sleep(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.013382332 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 202 out of 1000 SELECT power(3, 2), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(materialize(3), toNullable(2)) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT power(3, 2), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT power(3, 2), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(materialize(3), toUInt256(2)) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(materialize(3), toUInt256(2)) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(3, 2), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(materialize(3), toUInt256(2)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 205 out of 1000 SELECT power(3, 2), 2, materialize(3), sleep(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT power(3, 2), toLowCardinality(2), materialize(3), sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(3, 2), toLowCardinality(2), materialize(3), sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), toLowCardinality(2), materialize(3), sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 207 out of 1000 SELECT power(3, 2), 2, materialize(3), sleep(2) GROUP BY sleep(2), POWER(3) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(3, 2), 2, materialize(3), sleep(2) GROUP BY sleep(2), POWER(3) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), 2, materialize(3), sleep(2) GROUP BY sleep(2), POWER(3) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 208 out of 1000 SELECT power(3, 2), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 SELECT power(3, materialize(2)), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT power(toNullable(3), materialize(2)), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT power(toNullable(3), materialize(2)), 2, materialize(toUInt128(3)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 212 out of 1000 SELECT power(toNullable(3), materialize(2)), 2, materialize(toUInt128(3)), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT power(toNullable(3), 2), 2, materialize(toUInt128(3)), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 216 out of 1000 SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 218 out of 1000 SELECT power(toNullable(3), 2), toUInt128(3), sleep(POWER(3, toLowCardinality(2)), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(toNullable(3), 2), toUInt128(3), sleep(POWER(3, toLowCardinality(2)), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT power(toNullable(3), 2), toUInt128(3), sleep(POWER(3, toLowCardinality(2)), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 219 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(toNullable(3), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 220 out of 1000 SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) PREWHERE materialize(materialize(3)) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(toNullable(3), 2), toUInt128(3), sleep(2) PREWHERE materialize(materialize(3)) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 221 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 223 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(toNullable(toNullable(3)), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(toNullable(2)), POWER(materialize(3), 2) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.013487411 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 224 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 225 out of 1000 SELECT power(toNullable(3), toUInt256(2)), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(toNullable(3), toUInt256(2)), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(toNullable(3), toUInt256(2)), toUInt128(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 226 out of 1000 SELECT power(toNullable(toNullable(3)), 2), 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT power(toNullable(toNullable(3)), 2), 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE WITH TOTALS FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT power(toNullable(toNullable(3)), 2), 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE WITH TOTALS FORMAT `Null` Got boring AST Fuzzing step 229 out of 1000 SELECT power(toNullable(toNullable(3)), 2), 3, sleep(2) WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(materialize(3), 2))) WITH CUBE WITH TOTALS FORMAT `Null` Error on processing query 'SELECT power(toNullable(toNullable(3)), 2), 3, sleep(2) WHERE materialize(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(materialize(3), 2))) WITH CUBE WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 230 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 SELECT 3, sleep(materialize(2)) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(materialize(2)) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e1250f 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 232 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 234 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 235 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 236 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 237 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 238 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 239 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 240 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 241 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 242 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 243 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 244 out of 1000 SELECT 3, sleep(2) WHERE materialize(toNullable(3), 2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) WHERE materialize(toNullable(3), 2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 3, sleep(2) WHERE materialize(toNullable(3), 2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 245 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 246 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 248 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 249 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 250 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 251 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 252 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 253 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 255 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 256 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 257 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 258 out of 1000 SELECT toLowCardinality(3), sleep(materialize(toUInt128(2))) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toLowCardinality(3), sleep(materialize(toUInt128(2))) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function sleep, expected UInt* or Float*: In scope SELECT toLowCardinality(3), sleep(materialize(toUInt128(2))) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e1fc7aa 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 259 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 260 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 261 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 263 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 264 out of 1000 SELECT toLowCardinality(3), sleep(2) PREWHERE NULL WHERE materialize(2) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT toLowCardinality(3), sleep(2) PREWHERE NULL WHERE materialize(2) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 265 out of 1000 SELECT toLowCardinality(3), sleep(toLowCardinality(2)) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toLowCardinality(3), sleep(toLowCardinality(2)) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.013344906 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 266 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(toLowCardinality(toUInt128(2))) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toLowCardinality(3), sleep(2) WHERE materialize(toLowCardinality(toUInt128(2))) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt128) of column materialize(_CAST('2'_LowCardinality(UInt128), 'LowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 267 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 268 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 269 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 270 out of 1000 SELECT toLowCardinality(3), sleep(materialize(2)) WHERE materialize(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toLowCardinality(3), sleep(materialize(2)) WHERE materialize(2) GROUP BY sleep(2), POWER(toNullable(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e1250f 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 271 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(3), sleep(2) GROUP BY GROUPING SETS ( (sleep(POWER(toLowCardinality(3), 2), 2)), (POWER(materialize(toNullable(3)), 2))) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN SYNTAX SELECT toLowCardinality(3), sleep(2) GROUP BY GROUPING SETS ((sleep(POWER(toLowCardinality(3), 2), 2)), (POWER(materialize(toNullable(3)), 2))) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: While processing sleep(pow(toLowCardinality(3), 2), 2): While processing SELECT toLowCardinality(3), sleep(2) GROUP BY GROUPING SETS ((sleep(pow(toLowCardinality(3), 2), 2)), (pow(materialize(toNullable(3)), 2))) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 14. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActionsNoMakeSet(std::shared_ptr const&, DB::ActionsDAG&, bool) @ 0x000000001772693c 15. ./contrib/abseil-cpp/absl/container/internal/inlined_vector.h:374: DB::ExpressionAnalyzer::analyzeAggregation(DB::ActionsDAG&) @ 0x00000000177249b9 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x00000000177227aa 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) @ 0x0000000017dcfe78 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 @ 0x0000000017db0c6e 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 21. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 23. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 24. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 25. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 28. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 272 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 273 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 274 out of 1000 SELECT toLowCardinality(materialize(3)), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT toLowCardinality(materialize(3)), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(toLowCardinality(3))), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT toLowCardinality(materialize(3)), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(toLowCardinality(3))), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 277 out of 1000 SELECT toLowCardinality(materialize(3)), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(toLowCardinality(3))), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 278 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(toLowCardinality(3))), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT toLowCardinality(toLowCardinality(materialize(toLowCardinality(3))), 3), sleep(2) PREWHERE POWER(materialize(3), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toLowCardinality(toLowCardinality(materialize(toLowCardinality(3))), 3), sleep(2) PREWHERE POWER(materialize(3), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toLowCardinality(materialize(toLowCardinality(3))), 3), sleep(2) PREWHERE POWER(materialize(3), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 281 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 282 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 283 out of 1000 SELECT toLowCardinality(3), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 287 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 288 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 290 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 291 out of 1000 EXPLAIN SYNTAX SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 EXPLAIN SYNTAX SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 293 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 295 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 296 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 297 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('3'): 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 298 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 299 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 301 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 302 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 303 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('3'): 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 304 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 305 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 306 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 307 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 308 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 310 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 312 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 313 out of 1000 EXPLAIN ESTIMATE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 EXPLAIN ESTIMATE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 315 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 317 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 320 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 321 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 322 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 323 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 324 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 325 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('3'): 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 326 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 327 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 328 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 329 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 330 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 331 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 332 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 333 out of 1000 EXPLAIN AST SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 334 out of 1000 EXPLAIN ESTIMATE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 EXPLAIN ESTIMATE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 336 out of 1000 EXPLAIN ESTIMATE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 337 out of 1000 EXPLAIN SYNTAX SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN SYNTAX SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 339 out of 1000 EXPLAIN SYNTAX SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 340 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 343 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 344 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 345 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 346 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 347 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 348 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 349 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 350 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 352 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 355 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toNullable(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toNullable(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 356 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 358 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 360 out of 1000 SELECT 3, sleep(2) WHERE materialize(POW(toLowCardinality(3), 2), 2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) WHERE materialize(POW(toLowCardinality(3), 2), 2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 3, sleep(2) WHERE materialize(POW(toLowCardinality(3), 2), 2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 361 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 362 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 363 out of 1000 EXPLAIN PIPELINE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN SYNTAX SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN SYNTAX SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 366 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 368 out of 1000 EXPLAIN QUERY TREE SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 369 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 371 out of 1000 SELECT 3, sleep(pow(pow(3, 2), 3, 2), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(pow(pow(3, 2), 3, 2), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, sleep(pow(pow(3, 2), 3, 2), 2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 372 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 373 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 374 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(toNullable(materialize(toNullable(2))), 2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(toNullable(materialize(toNullable(2))), 2), POWER(materialize(3), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(toNullable(materialize(toNullable(2))), 2), POWER(materialize(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 375 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 376 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 377 out of 1000 SELECT 3, sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 378 out of 1000 SELECT toLowCardinality(toUInt256(3)), sleep(2) WHERE materialize(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 SELECT toLowCardinality(toUInt256(3)), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT toLowCardinality(toUInt256(3)), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT toLowCardinality(toUInt256(3)), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT toLowCardinality(toUInt256(3)), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 383 out of 1000 SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 385 out of 1000 SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 388 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 389 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 49 ('toUInt256'): toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 391 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 392 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 393 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 394 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 49 ('toUInt256'): toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 395 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 396 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 397 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 398 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 399 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 400 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('toUInt256'): toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 401 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 402 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 403 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 405 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 406 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 407 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 408 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 409 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 411 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 412 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 415 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 416 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 418 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 421 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 422 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 423 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 424 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 425 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 426 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 428 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 430 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 432 out of 1000 EXPLAIN SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 433 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 436 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 439 out of 1000 SELECT toUInt256(3), sleep(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), toLowCardinality(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT 3, sleep(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), toLowCardinality(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(3), toLowCardinality(2)) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(3), toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 443 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(toLowCardinality(3), toLowCardinality(2)) FORMAT `Null` Got boring AST Fuzzing step 444 out of 1000 SELECT 3 GROUP BY sleep(2), POWER(toUInt256(3), toLowCardinality(3), toLowCardinality(POWER(3, 2), 2)) FORMAT `Null` Error on processing query 'SELECT 3 GROUP BY sleep(2), POWER(toUInt256(3), toLowCardinality(3), toLowCardinality(POWER(3, 2), 2)) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 3 GROUP BY sleep(2), POWER(toUInt256(3), toLowCardinality(3), toLowCardinality(POWER(3, 2), 2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 445 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, toLowCardinality(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, toLowCardinality(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 448 out of 1000 SELECT 3, sleep(toUInt256(2)) GROUP BY sleep(2), POWER(toLowCardinality(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(toUInt256(2)) GROUP BY sleep(2), POWER(toLowCardinality(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function sleep, expected UInt* or Float*: In scope SELECT 3, sleep(toUInt256(2)) GROUP BY sleep(2), POWER(toLowCardinality(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e1fc7aa 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 449 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, toLowCardinality(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 450 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 452 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, sleep(2) GROUP BY sleep(2), POWER(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 453 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 454 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 455 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('3'): 3, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 456 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2, 2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) GROUP BY sleep(2, 2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT 3, sleep(2) GROUP BY sleep(2, 2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 457 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, toUInt128(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, toUInt128(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, sleep(2) GROUP BY sleep(2), POWER(3, toUInt128(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 458 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 460 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 461 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 462 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 463 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(materialize(3), materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 464 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(materialize(toNullable(3)), materialize(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), materialize(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT 3, sleep(2) GROUP BY sleep(2), POWER(toNullable(3), materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 467 out of 1000 SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, materialize(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 469 out of 1000 SELECT 3, 2, sleep(2) PREWHERE toNullable(toUInt256(2)) GROUP BY sleep(2), POWER(3, materialize(2)) WITH ROLLUP WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, 2, sleep(2) PREWHERE toNullable(toUInt256(2)) GROUP BY sleep(2), POWER(3, materialize(2)) WITH ROLLUP WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 131 ('CUBE'): CUBE FORMAT `Null`. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 470 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 473 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 EXPLAIN SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 EXPLAIN SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 476 out of 1000 EXPLAIN SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 477 out of 1000 EXPLAIN SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 478 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 481 out of 1000 SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 482 out of 1000 SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 483 out of 1000 SELECT 3, 2, sleep(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, 2, sleep(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 484 out of 1000 SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 485 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 45 ('3'): 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 487 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 488 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 489 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 490 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 492 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 495 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 496 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 498 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 499 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 500 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 501 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 502 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 503 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 504 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 505 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 506 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 507 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 509 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 510 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 511 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 512 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 516 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 517 out of 1000 EXPLAIN AST SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 520 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 521 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 522 out of 1000 EXPLAIN SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 525 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 526 out of 1000 SELECT 3, toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT 3, toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 528 out of 1000 SELECT 3, toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 529 out of 1000 SELECT toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT toLowCardinality(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 531 out of 1000 SELECT toLowCardinality(toUInt128(2)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, materialize(toNullable(2))) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, materialize(toNullable(2))) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 534 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, materialize(toNullable(2))) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 535 out of 1000 SELECT toUInt128(2), sleep(2) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT toUInt128(2), sleep(2) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 536 out of 1000 SELECT toUInt128(2), sleep(toNullable(toUInt128(2))) WHERE materialize(3) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toUInt128(2), sleep(toNullable(toUInt128(2))) WHERE materialize(3) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function sleep, expected UInt* or Float*: In scope SELECT toUInt128(2), sleep(toNullable(toUInt128(2))) WHERE materialize(3) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e1fc7aa 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 537 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, materialize(toNullable(2))) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 538 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 540 out of 1000 SELECT 2, sleep(POW(3), 2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 2, sleep(POW(3), 2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, sleep(POW(3), 2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 541 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 EXPLAIN indexes = true SELECT toUInt128(2), power(toLowCardinality(3), toNullable(3), materialize(2)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN indexes = true SELECT toUInt128(2), power(toLowCardinality(3), toNullable(3), materialize(2)), sleep(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 543 out of 1000 SELECT toUInt128(2), sleep(POWER(materialize(toNullable(3)), 2), 2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toUInt128(2), sleep(POWER(materialize(toNullable(3)), 2), 2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT toUInt128(2), sleep(POWER(materialize(toNullable(3)), 2), 2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 544 out of 1000 SELECT toUInt128(2), sleep(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT 2, sleep(2) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT 2, sleep(2) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 546 out of 1000 SELECT toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 548 out of 1000 SELECT toUInt128(3), toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT toUInt128(3), toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 550 out of 1000 SELECT toUInt128(3), toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 551 out of 1000 SELECT toUInt128(3), toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 552 out of 1000 SELECT toUInt128(3), toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 553 out of 1000 SELECT toUInt128(3), toUInt128(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 554 out of 1000 SELECT toUInt128(3), toUInt128(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 3, toUInt128(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT 3, toUInt128(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 557 out of 1000 SELECT 3, toUInt128(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 558 out of 1000 SELECT 3, toUInt128(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 559 out of 1000 SELECT 3, toUInt128(2) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 560 out of 1000 SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 563 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 564 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 566 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 567 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 569 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 571 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 573 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 575 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 EXPLAIN SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 578 out of 1000 EXPLAIN PIPELINE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 EXPLAIN PIPELINE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 580 out of 1000 EXPLAIN PIPELINE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 581 out of 1000 EXPLAIN PIPELINE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 582 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 584 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 585 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 586 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 587 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 588 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 589 out of 1000 EXPLAIN AST SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 590 out of 1000 EXPLAIN SYNTAX SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 593 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 594 out of 1000 SELECT 3, toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT toUInt256(3), toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT toUInt256(3), toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toUInt256(3), toUInt128(materialize(toLowCardinality(2))) GROUP BY sleep(2), POWER(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 596 out of 1000 SELECT 3, toUInt128(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT 3, toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT materialize(3), toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, sleep(2), 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT materialize(3), toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, sleep(2), 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(3), toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, sleep(2), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 599 out of 1000 SELECT 3, toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 600 out of 1000 SELECT 3, toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 601 out of 1000 SELECT 3, toUInt128(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT 3, toLowCardinality(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT 3, toLowCardinality(toNullable(toUInt256(2))) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 3, toLowCardinality(toNullable(toUInt256(2))) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 605 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) WHERE toUInt256(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 3, toLowCardinality(toUInt256(2)) WHERE toUInt256(2) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 606 out of 1000 SELECT 3, toLowCardinality(toNullable(toUInt256(2))) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Got boring AST Fuzzing step 607 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT 3, toLowCardinality(toUInt256(toNullable(2))) GROUP BY sleep(2), POWER(3, toNullable(2)) WITH CUBE FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 SELECT 3, toLowCardinality(toNullable(2)) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT 3, toLowCardinality(toNullable(toLowCardinality(2))) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT 3, toNullable(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT materialize(toNullable(toUInt256(3))), toNullable(power(materialize(3), 2), toLowCardinality(2)) WHERE POWER(materialize(toLowCardinality(3)), 2) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Error on processing query 'SELECT materialize(toNullable(toUInt256(3))), toNullable(power(materialize(3), 2), toLowCardinality(2)) WHERE POWER(materialize(toLowCardinality(3)), 2) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT materialize(toNullable(toUInt256(3))), toNullable(power(materialize(3), 2), toLowCardinality(2)) WHERE POWER(materialize(toLowCardinality(3)), 2) GROUP BY sleep(2), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 613 out of 1000 SELECT 3, toNullable(toLowCardinality(2)) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT 3, toNullable(toLowCardinality(2)) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 614 out of 1000 SELECT 3, toNullable(toLowCardinality(toNullable(2))) GROUP BY sleep(toUInt256(2)), POWER(3, 2) FORMAT `Null` Error on processing query 'SELECT 3, toNullable(toLowCardinality(toNullable(2))) GROUP BY sleep(toUInt256(2)), POWER(3, 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function sleep, expected UInt* or Float*: In scope SELECT 3, toNullable(toLowCardinality(toNullable(2))) GROUP BY sleep(toUInt256(2)), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000e1fc7aa 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 615 out of 1000 SELECT 3, toNullable(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 616 out of 1000 SELECT 3, toNullable(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 617 out of 1000 SELECT 3, toNullable(toLowCardinality(2)) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 618 out of 1000 SELECT 3, toLowCardinality(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT 3, toLowCardinality(2) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT 3, toLowCardinality(2) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 620 out of 1000 SELECT 3, toLowCardinality(2) GROUP BY GROUPING SETS ( (sleep(toLowCardinality(toNullable(2)))), (POWER(toUInt128(3), 2))) FORMAT `Null` Error on processing query 'SELECT 3, toLowCardinality(2) GROUP BY GROUPING SETS ((sleep(toLowCardinality(toNullable(2)))), (POWER(toUInt128(3), 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, toLowCardinality(2) GROUP BY GROUPING SETS ((sleep(toLowCardinality(toNullable(2)))), (POWER(toUInt128(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 621 out of 1000 SELECT 3, toLowCardinality(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 622 out of 1000 SELECT 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT toUInt256(toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT toUInt256(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 628 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 629 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 630 out of 1000 SELECT 2, 3 WITH TOTALS FORMAT `Null` Error on processing query 'SELECT 2, 3 WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 631 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 632 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 633 out of 1000 SELECT 2, 3 PREWHERE POW(3, toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT 2, 3 PREWHERE POW(3, toNullable(2)) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 634 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 635 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 636 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 637 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 638 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 639 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 640 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 641 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 642 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 643 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 644 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 645 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toNullable(3), 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toNullable(3), 2))) FORMAT `Null` Got boring AST Fuzzing step 647 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toNullable(3), 2))) FORMAT `Null` Got boring AST Fuzzing step 648 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Got boring AST Fuzzing step 652 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(NULL, 3), 2))) FORMAT `Null` Error on processing query 'SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(toLowCardinality(NULL, 3), 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(toLowCardinality(NULL, 3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 653 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Got boring AST Fuzzing step 654 out of 1000 SELECT POW(3, 2), materialize(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 SELECT POW(3, 2), 2, 3 WHERE POWER(3, 2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT POW(3, 2), 2, 3 WHERE POWER(3, 2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 656 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT POW(3, 2), materialize(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT POW(3, 2), materialize(2), 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 657 out of 1000 SELECT POW(3, 2), materialize(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Got boring AST Fuzzing step 658 out of 1000 SELECT POW(3, 2), materialize(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Got boring AST Fuzzing step 659 out of 1000 SELECT POW(3, 2), 2, toUInt128(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(3), 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 SELECT POW(3, 2), 2, toUInt128(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT POW(3, 2), 2, toUInt128(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toUInt128(2)))) FORMAT `Null` Error on processing query 'SELECT POW(3, 2), 2, toUInt128(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, toUInt128(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POW(3, 2), 2, toUInt128(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, toUInt128(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 662 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN PIPELINE header = true SELECT POW(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'EXPLAIN PIPELINE header = true SELECT POW(3, 2), 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 664 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 665 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 666 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 667 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 668 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 669 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 670 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POW'): POW(3, 2), 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 674 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 675 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 676 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 677 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 678 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 679 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 681 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 682 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 683 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 684 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 686 out of 1000 EXPLAIN AST SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN AST SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 688 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 690 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 691 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 692 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 693 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 694 out of 1000 SELECT POW(toLowCardinality(3), 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN optimize = true SELECT POW(toLowCardinality(3), 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'EXPLAIN optimize = true SELECT POW(toLowCardinality(3), 2), 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 696 out of 1000 SELECT POW(toLowCardinality(3), 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 697 out of 1000 SELECT POW(toLowCardinality(3), 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null` Error on processing query 'SELECT POW(toLowCardinality(3), 2), 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) WITH CUBE FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 698 out of 1000 SELECT POW(toLowCardinality(3), 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 699 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Got boring AST Fuzzing step 701 out of 1000 SELECT POW(3, 2), 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Got boring AST Fuzzing step 702 out of 1000 SELECT POW(3, 2), toLowCardinality(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT POW(3, 2), toLowCardinality(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Got boring AST Fuzzing step 704 out of 1000 SELECT POW(3, 2), toLowCardinality(2), 3 WHERE POW(toLowCardinality(3), toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT POW(3, 2), toLowCardinality(2), 3 WHERE POW(toLowCardinality(3), toNullable(2)) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 SELECT POW(3, 2), toLowCardinality(2), toLowCardinality(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT POW(3, 2), toLowCardinality(2), toLowCardinality(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Got boring AST Fuzzing step 707 out of 1000 SELECT POW(3, 2), 2, toLowCardinality(materialize(3)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 SELECT POW(3, 2), 2, materialize(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT POW(3, 2), 2, materialize(3) GROUP BY GROUPING SETS ( (sleep(materialize(2))), (POWER(3, toLowCardinality(2)))) FORMAT `Null` Error on processing query 'SELECT POW(3, 2), 2, materialize(3) GROUP BY GROUPING SETS ((sleep(materialize(2))), (POWER(3, toLowCardinality(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10bc8 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 710 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 712 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 713 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(toLowCardinality(3), 2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(toLowCardinality(3), 2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(toLowCardinality(3), 2)), (POWER(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 715 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 717 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 718 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 719 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 722 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 723 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 725 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 726 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 727 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 728 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 729 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 733 out of 1000 EXPLAIN QUERY TREE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 736 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 737 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 738 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 740 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 741 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 745 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 746 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 747 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 750 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 751 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 752 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 754 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 756 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 759 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 760 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 761 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 762 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 763 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 765 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 766 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 767 out of 1000 EXPLAIN QUERY TREE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 771 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 772 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 773 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 775 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 776 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 777 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 778 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 780 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 782 out of 1000 EXPLAIN AST SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 783 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 785 out of 1000 EXPLAIN PIPELINE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 786 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 788 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 789 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 790 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 792 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 794 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 795 out of 1000 EXPLAIN SYNTAX SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 796 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 797 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) WITH TOTALS FORMAT `Null` Error on processing query 'SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) WITH TOTALS FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 798 out of 1000 EXPLAIN SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 EXPLAIN QUERY TREE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 801 out of 1000 EXPLAIN QUERY TREE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 802 out of 1000 EXPLAIN QUERY TREE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 803 out of 1000 EXPLAIN QUERY TREE SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 804 out of 1000 SELECT 2, toUInt128(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT 2, toUInt128(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 806 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 808 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 809 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 810 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 811 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 812 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(toUInt256(2)), 2))) FORMAT `Null` Error on processing query 'SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, toNullable(toUInt256(2)), 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, toNullable(toUInt256(2)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 813 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 814 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 815 out of 1000 SELECT toLowCardinality(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT toLowCardinality(2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 817 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 819 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3))) FORMAT `Null` Error on processing query 'SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 820 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(materialize(2))), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(materialize(2))), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10bc8 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 821 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 822 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 823 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 824 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 825 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 826 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 827 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(POWER(toLowCardinality(3), toNullable(2)), 2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(POWER(toLowCardinality(3), toNullable(2)), 2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(POWER(toLowCardinality(3), toNullable(2)), 2)), (POWER(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 828 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 830 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 831 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(toLowCardinality(2), 2), POWER(3, 2) FORMAT `Null` Error on processing query 'SELECT 2, toLowCardinality(3) GROUP BY sleep(toLowCardinality(2), 2), POWER(3, 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT 2, toLowCardinality(3) GROUP BY sleep(toLowCardinality(2), 2), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 832 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 833 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 834 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 835 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 836 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(toLowCardinality(3), 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(toLowCardinality(3), 2) FORMAT `Null` Got boring AST Fuzzing step 838 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 840 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT 2, toLowCardinality(3) WHERE power(toLowCardinality(toUInt128(3)), toNullable(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null` Error on processing query 'SELECT 2, toLowCardinality(3) WHERE power(toLowCardinality(toUInt128(3)), toNullable(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, toLowCardinality(3) WHERE power(toLowCardinality(toUInt128(3)), toNullable(2)) GROUP BY sleep(2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 842 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 843 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, toUInt128(2)) FORMAT `Null` Error on processing query 'SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, toUInt128(2)) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, toUInt128(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 844 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 845 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(2) FORMAT `Null` Error on processing query 'SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 846 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 847 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 848 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 849 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 852 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 853 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 854 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 855 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 857 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 858 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 860 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 863 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 864 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 865 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 866 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 867 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 868 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 869 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 870 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 875 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 876 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 878 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 879 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 880 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 882 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 885 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 889 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 892 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 893 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 894 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('2'): 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 895 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 896 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('2'): 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 897 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 898 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 899 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('2'): 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 901 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 903 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 905 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 906 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 909 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 910 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 911 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 912 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 914 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 915 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 916 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, materialize(2)) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, materialize(2)) FORMAT `Null` Got boring AST Fuzzing step 918 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 920 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 921 out of 1000 SELECT 2, toLowCardinality(3) GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 922 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 924 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 925 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 926 out of 1000 SELECT 2, 3 GROUP BY sleep(2), POWER(3, 2) FORMAT `Null` Got boring AST Fuzzing step 927 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT 2, 3 GROUP BY GROUPING SETS ( (sleep(toLowCardinality(toLowCardinality(3)), 2)), (POWER(3, toNullable(2)))) FORMAT `Null` Error on processing query 'SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(toLowCardinality(toLowCardinality(3)), 2)), (POWER(3, toNullable(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function sleep doesn't match: passed 2, should be 1: In scope SELECT 2, 3 GROUP BY GROUPING SETS ((sleep(toLowCardinality(toLowCardinality(3)), 2)), (POWER(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 929 out of 1000 SELECT 2, power(toNullable(toNullable(3)), toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT 2, power(toNullable(toNullable(3)), toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Got boring AST Fuzzing step 931 out of 1000 SELECT 2, power(toNullable(3), toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT 2, power(toNullable(toLowCardinality(3)), toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT 2, power(toNullable(3), 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT 2, power(toNullable(3), 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Got boring AST Fuzzing step 935 out of 1000 SELECT 2, power(toNullable(3), 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Got boring AST Fuzzing step 936 out of 1000 SELECT toUInt256(toNullable(2)), 2, power(toNullable(3), 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT toUInt256(toNullable(2)), 2, power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT toUInt256(toNullable(2)), 2, power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Got boring AST Fuzzing step 939 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(toUInt256(2)), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Got boring AST Fuzzing step 942 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 944 out of 1000 SELECT toNullable(2), toLowCardinality(2), power(3), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT toNullable(2), toLowCardinality(2), power(3), 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), toLowCardinality(2), power(3), 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 945 out of 1000 SELECT toNullable(2), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3))) FORMAT `Null` Error on processing query 'SELECT toNullable(2), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(2), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 946 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 947 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(materialize(2))), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ((sleep(materialize(2))), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: The argument of function sleep must be constant.. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::execute(std::vector> const&, std::shared_ptr const&, bool) const @ 0x000000000e1fcd5f 5. DB::FunctionSleep<(DB::FunctionSleepVariant)0>::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x000000000e1fc437 6. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 7. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 8. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 9. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 10. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 12. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 13. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 14. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 15. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10bc8 17. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 18. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 948 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 949 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 950 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 951 out of 1000 SELECT toUInt256(toNullable(2)), toLowCardinality(2), power(3, 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 952 out of 1000 SELECT toUInt256(2), toLowCardinality(2), power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 955 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 WHERE POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 WHERE POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) of column pow(toLowCardinality(materialize(3_UInt8)), _CAST(2_LowCardinality(UInt8), 'LowCardinality(UInt8)'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 956 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 957 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 958 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 959 out of 1000 EXPLAIN actions = true, json = true SELECT toUInt256(2), 2, power(materialize(toLowCardinality(3)), 2), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null` Error on processing query 'EXPLAIN actions = true, json = true SELECT toUInt256(2), 2, power(materialize(toLowCardinality(3)), 2), 3 GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, toNullable(2)))) FORMAT `Null`': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 960 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 961 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 962 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 963 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 964 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 965 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 966 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 967 out of 1000 SELECT toUInt256(2), materialize(2), power(3, toNullable(2)), toUInt128(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(toLowCardinality(toUInt128(3)), 2))) FORMAT `Null` Error on processing query 'SELECT toUInt256(2), materialize(2), power(3, toNullable(2)), toUInt128(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(toLowCardinality(toUInt128(3)), 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toUInt256(2), materialize(2), power(3, toNullable(2)), toUInt128(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(toLowCardinality(toUInt128(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 968 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 969 out of 1000 SELECT toUInt256(2), 2, power(3, toNullable(2)), 3 GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 970 out of 1000 SELECT toUInt256(2), 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT toUInt256(2), 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(sleep(toLowCardinality(2)), 3, 2))) FORMAT `Null` Error on processing query 'SELECT toUInt256(2), 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ((sleep(2)), (POWER(sleep(toLowCardinality(2)), 3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toUInt256(2), 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ((sleep(2)), (POWER(sleep(toLowCardinality(2)), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 972 out of 1000 SELECT toUInt256(2), 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 973 out of 1000 SELECT toUInt256(2), 2, power(3, 2), 3 PREWHERE POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT toUInt256(2), 2, power(3, 2), 3 PREWHERE POWER(toLowCardinality(3), toNullable(2)) WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 SELECT 2, 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT 2, 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 976 out of 1000 SELECT 2, 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 977 out of 1000 SELECT 2, 2, power(3, 2), 3 WHERE materialize(toNullable(2)) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 978 out of 1000 SELECT toNullable(2), 2, power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT 2, 2, power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 SELECT 2, 2, power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 981 out of 1000 SELECT 2, 2, power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Got boring AST Fuzzing step 982 out of 1000 SELECT 2, 2, power(2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT 2, 2, power(2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, 2, power(2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 983 out of 1000 SELECT 2, toNullable(2), power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT 2, toNullable(2), power(3, 2), 3 PREWHERE materialize(2) WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, 2))) FORMAT `Null` Error on processing query 'SELECT 2, toNullable(2), power(3, 2), 3 PREWHERE materialize(2) WHERE materialize(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, 2))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 985 out of 1000 SELECT 2, toNullable(2), power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 986 out of 1000 SELECT 2, toNullable(2), power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 987 out of 1000 SELECT 2, toNullable(2), power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3))) FORMAT `Null` Error on processing query 'SELECT 2, toNullable(2), power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, toNullable(2), power(3, 2), 3 WHERE materialize(2) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 988 out of 1000 SELECT 2, toNullable(2), power(3, 2), toNullable(3) WHERE materialize(2) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, power(materialize(3), 2), materialize(2)))) FORMAT `Null` Error on processing query 'SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, power(materialize(3), 2), materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, power(materialize(3), 2), materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 991 out of 1000 SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 992 out of 1000 SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 993 out of 1000 SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 994 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 996 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 997 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null`': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('2'): 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ((sleep(2)), (POWER(3, materialize(2)))) FORMAT `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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 998 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST Fuzzing step 999 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(2), power(3, 2), toNullable(3) GROUP BY GROUPING SETS ( (sleep(2)), (POWER(3, materialize(2)))) FORMAT `Null` Got boring AST 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 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 2 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 3 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 4 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 5 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 6 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 7 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 8 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 9 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 10 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 11 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 12 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 13 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 14 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 15 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 16 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 17 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 18 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 19 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 20 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 21 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 22 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 23 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 24 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 25 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 26 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 27 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 28 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 29 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 30 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 31 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 32 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 33 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 34 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 35 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 36 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 37 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 38 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 39 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 40 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 41 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 42 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 43 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 44 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 45 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 46 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 47 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 48 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 49 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 50 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 51 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 52 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 53 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 54 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 55 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 56 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 57 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 58 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 59 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 60 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 61 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 62 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 63 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 64 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 65 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 66 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 67 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 68 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 69 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 70 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 71 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 72 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 73 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 74 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 75 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 76 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 77 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 78 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 79 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 80 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 81 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 82 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 83 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 84 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 85 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 86 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 87 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 88 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 89 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 90 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 91 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 92 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 93 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 94 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 95 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 96 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 97 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 98 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 99 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 100 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 101 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 102 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 103 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 104 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 105 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 106 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 107 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 108 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 109 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 110 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 111 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 112 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 113 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 114 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 115 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 116 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 117 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 118 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 119 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 120 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 121 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 122 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 123 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 124 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 125 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 126 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 127 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 128 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 129 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 130 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 131 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 132 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 133 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 134 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 135 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 136 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 137 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 138 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 139 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 140 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 141 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 142 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 143 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 144 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 145 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 146 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 147 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 148 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 149 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 150 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 151 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 152 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 153 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 154 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 155 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 156 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 157 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 158 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 159 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 160 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 161 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 162 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 163 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 164 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 165 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 166 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 167 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 168 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 169 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 170 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 171 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 172 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 173 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 174 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 175 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 176 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 177 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 178 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 179 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 180 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 181 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 182 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 183 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 184 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 185 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 186 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 187 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 188 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 189 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 190 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 191 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 192 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 193 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 194 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 195 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 196 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 197 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 198 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 199 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 200 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 201 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 202 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 203 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 204 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 205 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 206 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 207 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 208 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 209 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 210 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 211 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 212 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 213 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 214 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 215 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 216 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 217 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 218 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 219 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 220 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 221 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 222 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 223 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 224 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 225 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 226 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 227 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 228 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 229 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 230 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 231 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 232 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 233 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 234 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 235 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 236 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 237 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 238 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 239 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 240 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 241 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 242 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 243 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 244 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 245 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 246 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 247 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 248 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 249 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 250 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 251 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 252 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 253 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 254 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 255 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 256 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 257 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 258 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 259 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 260 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 261 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 262 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 263 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 264 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 265 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 266 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 267 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 268 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 269 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 270 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 271 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 272 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 273 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 274 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 275 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 276 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 277 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 278 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 279 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 280 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 281 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 282 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 283 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 284 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 285 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 286 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 287 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 288 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 289 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 290 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 291 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 292 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 293 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 294 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 295 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 296 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 297 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 298 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 299 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 300 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 301 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 302 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 303 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 304 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 305 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 306 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 307 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 308 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 309 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 310 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 311 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 312 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 313 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 314 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 315 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 316 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 317 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 318 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 319 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 320 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 321 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 322 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 323 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 324 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 325 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 326 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 327 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 328 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 329 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 330 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 331 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 332 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 333 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 334 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 335 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 336 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 337 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 338 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 339 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 340 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 341 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 342 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 343 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 344 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 345 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 346 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 347 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 348 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 349 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 350 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 351 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 352 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 353 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 354 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 355 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 356 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 357 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 358 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 359 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 360 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 361 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 362 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 363 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 364 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 365 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 366 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 367 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 368 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 369 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 370 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 371 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 372 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 373 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 374 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 375 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 376 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 377 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 378 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 379 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 380 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 381 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 382 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 383 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 384 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 385 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 386 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 387 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 388 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 389 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 390 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 391 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 392 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 393 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 394 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 395 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 396 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 397 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 398 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 399 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 400 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 401 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 402 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 403 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 404 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 405 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 406 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 407 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 408 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 409 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 410 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 411 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 412 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 413 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 414 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 415 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 416 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 417 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 418 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 419 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 420 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 421 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 422 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 423 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 424 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 425 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 426 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 427 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 428 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 429 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 430 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 431 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 432 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 433 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 434 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 435 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 436 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 437 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 438 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 439 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 440 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 441 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 442 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 443 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 444 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 445 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 446 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 447 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 448 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 449 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 450 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 451 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 452 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 453 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 454 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 455 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 456 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 457 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 458 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 459 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 460 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 461 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 462 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 463 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 464 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 465 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 466 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 467 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 468 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 469 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 470 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 471 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 472 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 473 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 474 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 475 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 476 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 477 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 478 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 479 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 480 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 481 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 482 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 483 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 484 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 485 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 486 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 487 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 488 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 489 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 490 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 491 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 492 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 493 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 494 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 495 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 496 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 497 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 498 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 499 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 500 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 501 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 502 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 503 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 504 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 505 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 506 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 507 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 508 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 509 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 510 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 511 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 512 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 513 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 514 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 515 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 516 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 517 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 518 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 519 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 520 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 521 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 522 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 523 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 524 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 525 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 526 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 527 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 528 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 529 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 530 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 531 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 532 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 533 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 534 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 535 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 536 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 537 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 538 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 539 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 540 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 541 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 542 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 543 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 544 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 545 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 546 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 547 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 548 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 549 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 550 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 551 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 552 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 553 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 554 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 555 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 556 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 557 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 558 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 559 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 560 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 561 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 562 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 563 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 564 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 565 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 566 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 567 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 568 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 569 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 570 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 571 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 572 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 573 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 574 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 575 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 576 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 577 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 578 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 579 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 580 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 581 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 582 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 583 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 584 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 585 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 586 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 587 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 588 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 589 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 590 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 591 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 592 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 593 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 594 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 595 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 596 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 597 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 598 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 599 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 600 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 601 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 602 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 603 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 604 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 605 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 606 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 607 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 608 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 609 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 610 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 611 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 612 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 613 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 614 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 615 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 616 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 617 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 618 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 619 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 620 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 621 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 622 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 623 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 624 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 625 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 626 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 627 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 628 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 629 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 630 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 631 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 632 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 633 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 634 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 635 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 636 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 637 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 638 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 639 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 640 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 641 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 642 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 643 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 644 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 645 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 646 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 647 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 648 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 649 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 650 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 651 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 652 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 653 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 654 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 655 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 656 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 657 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 658 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 659 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 660 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 661 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 662 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 663 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 664 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 665 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 666 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 667 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 668 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 669 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 670 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 671 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 672 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 673 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 674 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 675 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 676 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 677 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 678 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 679 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 680 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 681 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 682 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 683 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 684 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 685 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 686 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 687 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 688 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 689 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 690 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 691 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 692 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 693 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 694 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 695 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 696 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 697 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 698 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 699 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 700 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 701 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 702 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 703 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 704 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 705 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 706 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 707 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 708 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 709 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 710 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 711 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 712 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 713 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 714 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 715 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 716 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 717 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 718 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 719 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 720 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 721 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 722 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 723 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 724 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 725 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 726 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 727 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 728 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 729 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 730 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 731 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 732 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 733 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 734 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 735 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 736 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 737 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 738 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 739 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 740 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 741 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 742 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 743 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 744 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 745 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 746 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 747 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 748 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 749 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 750 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 751 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 752 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 753 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 754 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 755 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 756 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 757 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 758 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 759 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 760 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 761 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 762 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 763 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 764 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 765 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 766 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 767 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 768 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 769 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 770 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 771 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 772 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 773 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 774 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 775 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 776 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 777 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 778 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 779 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 780 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 781 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 782 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 783 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 784 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 785 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 786 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 787 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 788 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 789 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 790 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 791 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 792 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 793 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 794 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 795 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 796 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 797 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 798 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 799 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 800 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 801 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 802 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 803 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 804 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 805 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 806 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 807 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 808 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 809 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 810 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 811 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 812 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 813 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 814 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 815 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 816 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 817 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 818 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 819 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 820 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 821 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 822 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 823 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 824 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 825 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 826 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 827 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 828 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 829 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 830 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 831 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 832 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 833 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 834 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 835 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 836 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 837 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 838 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 839 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 840 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 841 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 842 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 843 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 844 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 845 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 846 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 847 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 848 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 849 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 850 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 851 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 852 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 853 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 854 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 855 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 856 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 857 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 858 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 859 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 860 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 861 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 862 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 863 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 864 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 865 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 866 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 867 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 868 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 869 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 870 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 871 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 872 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 873 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 874 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 875 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 876 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 877 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 878 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 879 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 880 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 881 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 882 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 883 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 884 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 885 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 886 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 887 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 888 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 889 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 890 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 891 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 892 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 893 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 894 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 895 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 896 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 897 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 898 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 899 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 900 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 901 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 902 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 903 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 904 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 905 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 906 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 907 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 908 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 909 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 910 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 911 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 912 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 913 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 914 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 915 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 916 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 917 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 918 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 919 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 920 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 921 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 922 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 923 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 924 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 925 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 926 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 927 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 928 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 929 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 930 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 931 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 932 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 933 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 934 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 935 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 936 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 937 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 938 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 939 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 940 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 941 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 942 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 943 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 944 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 945 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 946 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 947 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 948 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 949 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 950 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 951 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 952 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 953 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 954 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 955 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 956 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 957 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 958 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 959 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 960 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 961 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 962 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 963 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 964 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 965 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 966 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 967 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 968 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 969 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 970 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 971 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 972 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 973 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 974 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 975 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 976 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 977 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 978 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 979 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 980 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 981 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 982 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 983 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 984 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 985 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 986 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 987 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 988 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 989 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 990 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 991 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 992 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 993 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 994 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 995 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 996 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 997 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 998 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 999 out of 1000 SYSTEM FLUSH LOGS Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 2 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 3 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' PREWHERE power(toLowCardinality(3), toNullable(3), materialize(2)) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' PREWHERE power(toLowCardinality(3), toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' PREWHERE power(toLowCardinality(3), toNullable(3), materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 4 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 5 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 6 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 7 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 8 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 9 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 10 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 11 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 12 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 13 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 14 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 15 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 16 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 17 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 18 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 19 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 20 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 21 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 22 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 23 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 24 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' PREWHERE toLowCardinality(3) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' PREWHERE toLowCardinality(3)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 25 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 26 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 27 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 28 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 29 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 30 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 31 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 32 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 33 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 34 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 35 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 36 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 37 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 38 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 39 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 40 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 41 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 42 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY materialize(toUInt256(3)), toLowCardinality(toLowCardinality(3)), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY materialize(toUInt256(3)), toLowCardinality(toLowCardinality(3)), 3 Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY materialize(toUInt256(3)), toLowCardinality(toLowCardinality(3)), 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY materialize(toUInt256(3)), toLowCardinality(toLowCardinality(3)), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 44 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(toLowCardinality(3)), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE power(materialize(3), 2) GROUP BY toUInt256(3), toLowCardinality(3), 3 Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE power(materialize(3), 2) GROUP BY toUInt256(3), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE power(materialize(3), 2) GROUP BY toUInt256(3), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 46 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 47 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 49 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), 3, 3 Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), 3, 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), 3, 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 50 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 51 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), 3 Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 52 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 53 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 54 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), 3 Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY toUInt256(3), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 55 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(toUInt256(3))), (3), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ((toUInt256(toUInt256(3))), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ((toUInt256(toUInt256(3))), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 57 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 58 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 59 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 60 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 61 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (3), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 62 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 63 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(power(toNullable(3), 2), 3)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(power(toNullable(3), 2), 3)) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(power(toNullable(3), 2), 3)) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 65 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 66 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 67 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(toUInt256(3), 3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(toUInt256(3), 3)))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(toUInt256(3), 3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 68 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 69 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (3), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 70 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 71 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(materialize(3)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 72 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 74 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 75 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 76 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 77 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), 3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), 3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), 3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 78 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 80 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (3)) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (3))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 81 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 82 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 83 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 86 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 87 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (3)) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (3))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 90 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 91 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 92 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 93 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 94 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 95 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 96 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 98 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 101 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 104 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 105 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 106 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 108 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 111 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 112 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 113 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 115 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 116 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 117 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 118 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 119 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 120 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 121 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 123 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 124 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 125 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 127 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 129 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 131 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 132 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 136 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 138 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 139 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 141 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 142 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 143 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 145 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 147 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 148 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 149 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 150 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 151 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 154 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 157 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 160 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 162 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 164 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 165 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 166 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 EXPLAIN AST SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (3)) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (3))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 170 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 171 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 173 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(toNullable(3))), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(toNullable(3))), (3)) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(toNullable(3))), (3))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(toNullable(3))), (3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 175 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (3), (toLowCardinality(toNullable(3))), (toNullable(3))) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((3), (toLowCardinality(toNullable(3))), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ((3), (toLowCardinality(toNullable(3))), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 176 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(toNullable(3))), (toNullable(3))) Got boring AST Fuzzing step 177 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(toNullable(3))), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 180 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 181 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 182 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 184 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 185 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 187 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 188 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 189 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 191 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 192 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 193 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 194 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 198 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 203 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 204 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 207 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 208 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toLowCardinality'): toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 211 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 212 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 213 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toLowCardinality'): toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 214 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 216 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 217 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 219 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 220 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 222 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 223 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 224 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 225 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 226 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 228 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 229 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 231 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 233 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 234 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 235 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 236 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 237 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 242 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 33 ('toLowCardinality'): toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 243 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('toLowCardinality'): toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 244 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 249 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 250 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 251 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 253 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 258 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 259 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 261 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 262 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (3), (toLowCardinality(3)), (3)) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (3))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') WHERE materialize('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ((3), (toLowCardinality(3)), (3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 263 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 267 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 268 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 269 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 270 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 271 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 272 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 273 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 275 out of 1000 EXPLAIN SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 278 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 280 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 EXPLAIN AST SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 283 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(toUInt128(3))), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(toUInt128(3))), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 286 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(toUInt128(3))), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 287 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 289 out of 1000 SELECT toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 291 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 292 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) WITH TOTALS Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 293 out of 1000 SELECT toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 294 out of 1000 SELECT toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 295 out of 1000 SELECT toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 296 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ( (toUInt256(3)), (3), (toNullable(3))) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ((toUInt256(3)), (3), (toNullable(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 297 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(3))) Got boring AST Fuzzing step 299 out of 1000 SELECT toLowCardinality(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57)) GROUP BY GROUPING SETS ( (toUInt256(materialize(3))), (toLowCardinality(3)), (toNullable(3))) Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), 3, toNullable(3) Error on processing query 'EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), 3, toNullable(3)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), 3, toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 302 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) WHERE toUInt256(materialize(toUInt256(3))) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) WHERE toUInt256(materialize(toUInt256(3))) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) WHERE toUInt256(materialize(toUInt256(3))) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 303 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3 Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 304 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3 Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', materialize(2), 57)) GROUP BY toUInt256(materialize(3)), 3, toNullable(3) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', materialize(2), 57)) GROUP BY toUInt256(materialize(3)), 3, toNullable(3)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', materialize(2), 57)) GROUP BY toUInt256(materialize(3)), 3, toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 306 out of 1000 SELECT toLowCardinality(toLowCardinality(materialize(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3 Error on processing query 'SELECT toLowCardinality(toLowCardinality(materialize(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toLowCardinality(materialize(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 307 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(POW(3, toLowCardinality(2)), 3)), 3, toNullable(3) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(POW(3, toLowCardinality(2)), 3)), 3, toNullable(3)': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(POW(3, toLowCardinality(2)), 3)), 3, toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 308 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), 3, toNullable(3) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), 3, toNullable(3)': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), 3, toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 309 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(toNullable(2), 3) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(toNullable(2), 3)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(toNullable(2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 310 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3) Error on processing query 'SELECT toLowCardinality(materialize(toLowCardinality(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(materialize(toLowCardinality(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 311 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 312 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY materialize(3), toLowCardinality(toLowCardinality(2), 3), toNullable(3) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY materialize(3), toLowCardinality(toLowCardinality(2), 3), toNullable(3)': 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('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY materialize(3), toLowCardinality(toLowCardinality(2), 3), toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 313 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 314 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(pow(3, 2), 3) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(pow(3, 2), 3)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(pow(3, 2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 315 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(materialize(3)), toLowCardinality(3), toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 316 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY materialize(3), 3, toNullable(3) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY materialize(3), 3, toNullable(3)': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY materialize(3), 3, toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 317 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 321 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY 3, toLowCardinality(3), toNullable(3) Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY 3, toLowCardinality(3), toNullable(3)': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY 3, toLowCardinality(3), toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 322 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 323 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57) GROUP BY 3, toLowCardinality(3), toNullable(3) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57) GROUP BY 3, toLowCardinality(3), toNullable(3)': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57) GROUP BY 3, toLowCardinality(3), toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 325 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 327 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 328 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 329 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 330 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 WITH TOTALS Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 331 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), 3 Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 332 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(POW(3, materialize(toLowCardinality(2))), 3) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(POW(3, materialize(toLowCardinality(2))), 3)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(POW(3, materialize(toLowCardinality(2))), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 333 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 334 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 335 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), 3 Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 336 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 337 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), 3, toNullable(3) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), 3, toNullable(3)': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), 3, toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 338 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(POWER(toLowCardinality(3), 2), materialize(toNullable(3))), toLowCardinality(3), toNullable(3) Error on processing query 'EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(POWER(toLowCardinality(3), 2), materialize(toNullable(3))), toLowCardinality(3), toNullable(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 '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(POWER(toLowCardinality(3), 2), materialize(toNullable(3))), toLowCardinality(3), toNullable(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780eaef 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 339 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) Got boring AST Fuzzing step 340 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toLowCardinality(3), toNullable(3) WITH ROLLUP Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toLowCardinality(3), toNullable(3) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toLowCardinality(3), toNullable(3) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 342 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 344 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 345 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 346 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 347 out of 1000 SELECT toLowCardinality(materialize(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 SELECT toLowCardinality(materialize(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(toLowCardinality(toUInt256(2)), 3), 3 WITH ROLLUP Error on processing query 'SELECT toLowCardinality(materialize(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(toLowCardinality(toUInt256(2)), 3), 3 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 toLowCardinality(materialize(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(toLowCardinality(toUInt256(2)), 3), 3 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 349 out of 1000 SELECT materialize(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT materialize(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH ROLLUP Got boring AST Fuzzing step 351 out of 1000 SELECT toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 SELECT toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 SELECT toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 354 out of 1000 SELECT toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), materialize(3) Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 357 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 358 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN AST SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 EXPLAIN AST SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 361 out of 1000 EXPLAIN SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 363 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 365 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('3'): 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 366 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 367 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 368 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 369 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(3), 3 Got boring AST Fuzzing step 371 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(materialize(3)), 3 Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(materialize(3)), 3 Got boring AST Fuzzing step 373 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57) WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(materialize(3)), 3 Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57) WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(materialize(3)), 3 Got boring AST Fuzzing step 375 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57) WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(materialize(3)), 3 Got boring AST Fuzzing step 376 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57) WHERE toLowCardinality(3) GROUP BY 3, toLowCardinality(materialize(3)), 3 Got boring AST Fuzzing step 377 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57) WHERE toLowCardinality(3) GROUP BY toLowCardinality(toNullable(3)), toLowCardinality(materialize(3)), 3 Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57) WHERE toLowCardinality(3) GROUP BY toLowCardinality(toNullable(3)), toLowCardinality(materialize(3)), 3 Got boring AST Fuzzing step 379 out of 1000 SELECT 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57) WHERE toLowCardinality(3) GROUP BY toLowCardinality(toNullable(3)), toLowCardinality(materialize(3)), 3 Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57) WHERE toLowCardinality(3) GROUP BY toLowCardinality(toNullable(3)), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toLowCardinality(toNullable(3)), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN actions = true, optimize = true SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Error on processing query 'EXPLAIN actions = true, optimize = true SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 384 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toLowCardinality(3) GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 385 out of 1000 SELECT 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 388 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 EXPLAIN SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 391 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ( (toLowCardinality(3)), (toLowCardinality(materialize(3))), (3)) WITH TOTALS Error on processing query 'SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((toLowCardinality(3)), (toLowCardinality(materialize(3))), (3)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 392 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 394 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('3'): 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 395 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 396 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 398 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('3'): 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 399 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 400 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 401 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 402 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 404 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 406 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 407 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 408 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('3'): 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 409 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 410 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 411 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 412 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT toUInt128(3), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toLowCardinality(3), toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY 3, toLowCardinality(materialize(3)), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY 3, toLowCardinality(materialize(3)), 3 WITH TOTALS Got boring AST Fuzzing step 417 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY 3, materialize(3), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, materialize(3), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 WITH TOTALS Error on processing query 'SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 420 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, materialize(3), 3 WITH TOTALS Got boring AST Fuzzing step 421 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toNullable(3), materialize(3), 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, toUInt256(3) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 WITH TOTALS Error on processing query 'SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 425 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, toUInt256(toNullable(materialize(toNullable(3))), 3) WITH TOTALS Error on processing query 'SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, toUInt256(toNullable(materialize(toNullable(3))), 3) 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 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, toUInt256(toNullable(materialize(toNullable(3))), 3) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780eaef 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 426 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), 3, 3 WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), 3, 3 WITH TOTALS Got boring AST Fuzzing step 428 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), 3, toLowCardinality(toUInt128(3)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), 3, toUInt128(3) Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 PREWHERE materialize(toUInt256(3)) WITH TOTALS Error on processing query 'SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 PREWHERE materialize(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 431 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(3), 3, toUInt128(3) Got boring AST Fuzzing step 432 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(materialize(toUInt128(3))), 3, 3 Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(materialize(toUInt128(3))), 3, 3 Got boring AST Fuzzing step 434 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(materialize(toUInt128(3))), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(materialize(toUInt128(3))), 3, 3 WITH CUBE Got boring AST Fuzzing step 436 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toLowCardinality(toUInt128(3)), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (3), (3)) WITH CUBE Error on processing query 'SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3))), (3), (3)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 438 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(3), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(3), 3, 3 WITH CUBE Got boring AST Fuzzing step 440 out of 1000 EXPLAIN PIPELINE header = true SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'EXPLAIN PIPELINE header = true SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 441 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(3), 3, 3 WITH CUBE Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(3), 3, 3 WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 442 out of 1000 SELECT 3, toLowCardinality(materialize(toLowCardinality(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(3), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT 3, toLowCardinality(materialize(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 SELECT 3, toLowCardinality(materialize(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Got boring AST Fuzzing step 445 out of 1000 SELECT 3, materialize(3), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(toLowCardinality(materialize(toLowCardinality(3))), 3), 3, 3 WITH CUBE Error on processing query 'SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(toLowCardinality(materialize(toLowCardinality(3))), 3), 3, 3 WITH CUBE': 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 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt128(toLowCardinality(materialize(toLowCardinality(3))), 3), 3, 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 448 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Got boring AST Fuzzing step 449 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Got boring AST Fuzzing step 450 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, materialize(materialize(3)), power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, materialize(materialize(3)), power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, materialize(materialize(3)), power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 451 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toUInt128(3), 3, 3 WITH CUBE Got boring AST Fuzzing step 452 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 454 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 455 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 456 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT 3, materialize(3), power(materialize(POW(toLowCardinality(3), 2), 3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'SELECT 3, materialize(3), power(materialize(POW(toLowCardinality(3), 2), 3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 3, materialize(3), power(materialize(POW(toLowCardinality(3), 2), 3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 458 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 459 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 460 out of 1000 SELECT 3, materialize(3), power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 461 out of 1000 SELECT materialize(toLowCardinality(3)), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT materialize(materialize(toLowCardinality(2)), toLowCardinality(3)), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'SELECT materialize(materialize(toLowCardinality(2)), toLowCardinality(3)), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize(materialize(toLowCardinality(2)), toLowCardinality(3)), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY 3, 3, 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 463 out of 1000 SELECT materialize(toLowCardinality(3)), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT materialize(3), toLowCardinality(3), 3, power(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT materialize(3), toLowCardinality(3), 3, power(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 466 out of 1000 SELECT materialize(3), toLowCardinality(3), 3, power(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, materialize(toLowCardinality(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT materialize(3), toLowCardinality(3), 3, power(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(toUInt128(57)) GROUP BY 3, materialize(toLowCardinality(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT materialize(3), toLowCardinality(3), 3, power(3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(toUInt128(57)) GROUP BY 3, materialize(toLowCardinality(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT 3, toLowCardinality(3), 3, power(3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(toUInt128(57)) GROUP BY 3, materialize(toLowCardinality(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(toNullable(3)), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(toUInt128(57)) GROUP BY 3, materialize(toLowCardinality(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(3), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toLowCardinality(toNullable(toUInt128(3))), materialize(toLowCardinality(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(toNullable(3)), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toLowCardinality(toNullable(toUInt128(3))), materialize(toLowCardinality(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(toNullable(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY toNullable(toUInt128(3)), toLowCardinality(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(toUInt128(3)), toLowCardinality(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(toUInt128(toNullable(toUInt256(3)))), toLowCardinality(toUInt256(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(toNullable(toUInt256(3))), toLowCardinality(toUInt256(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT 3, toLowCardinality(3), 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(toUInt256(3)), toLowCardinality(toUInt256(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT toNullable(3), toLowCardinality(3), 3, power(materialize(3), 2), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toUInt256(3), toLowCardinality(toUInt256(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 3, 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT toLowCardinality(toNullable(toUInt128(3))), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(toLowCardinality(toUInt256(toNullable(2))), 3), 3 WITH CUBE Error on processing query 'SELECT toLowCardinality(toNullable(toUInt128(3))), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(toLowCardinality(toUInt256(toNullable(2))), 3), 3 WITH CUBE': 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 toLowCardinality(toNullable(toUInt128(3))), 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(toLowCardinality(toUInt256(toNullable(2))), 3), 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780eaef 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 481 out of 1000 SELECT 3, 3, 3, power(materialize(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Got boring AST Fuzzing step 482 out of 1000 SELECT 3, 3, 3, power(materialize(toLowCardinality(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT 3, 3, 3, power(materialize(toLowCardinality(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Got boring AST Fuzzing step 484 out of 1000 SELECT 3, 3, 3, power(materialize(toLowCardinality(3)), 2), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT 3, 3, 3, power(toLowCardinality(3), 2), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT 3, 3, 3, power(toLowCardinality(3), 2), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, materialize(toUInt256(3)), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 SELECT 3, 3, 3, power(toLowCardinality(3), 2), materialize(toLowCardinality(toNullable(2)), '01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, materialize(toUInt256(3)), 3 WITH ROLLUP WITH CUBE Error on processing query 'SELECT 3, 3, 3, power(toLowCardinality(3), 2), materialize(toLowCardinality(toNullable(2)), '01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, materialize(toUInt256(3)), 3 WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 274 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 488 out of 1000 SELECT 3, 3, 3, power(toLowCardinality(3), 2), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, materialize(toUInt256(3)), 3 WITH CUBE Got boring AST Fuzzing step 489 out of 1000 SELECT 3, 3, 3, power(toLowCardinality(toNullable(3)), 2), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT 3, 3, 3, power(toLowCardinality(toNullable(3)), 2), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT 3, 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT 3, 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE Got boring AST Fuzzing step 493 out of 1000 SELECT 3, 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(toUInt256(3), 3) WITH CUBE Error on processing query 'SELECT 3, 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(toUInt256(3), 3) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 3, 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(toUInt256(3), 3) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 494 out of 1000 SELECT 3, POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT 3, POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE Got boring AST Fuzzing step 496 out of 1000 SELECT 3, POWER(3, POW(3, toNullable(2)), 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE Error on processing query 'SELECT 3, POWER(3, POW(3, toNullable(2)), 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, POWER(3, POW(3, toNullable(2)), 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), toNullable(3) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 497 out of 1000 SELECT 3, POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT 3, POWER(3, POW(toLowCardinality(toNullable(3)), 2), 2), 3, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Error on processing query 'SELECT 3, POWER(3, POW(toLowCardinality(toNullable(3)), 2), 2), 3, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, POWER(3, POW(toLowCardinality(toNullable(3)), 2), 2), 3, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 499 out of 1000 SELECT 3, POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, toUInt256(3), 3 WITH CUBE Got boring AST Fuzzing step 500 out of 1000 SELECT 3, POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT 3, POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 502 out of 1000 SELECT POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 EXPLAIN PIPELINE header = true SELECT POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'EXPLAIN PIPELINE header = true SELECT POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 504 out of 1000 SELECT POWER(3, 2), 3, 3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 505 out of 1000 SELECT POWER(3, 2), toUInt128(3), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 WITH TOTALS Error on processing query 'SELECT POWER(3, 2), toUInt128(3), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 506 out of 1000 SELECT POWER(3, 2), 3, 3, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY toNullable(3), 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT POWER(3, 2), 3, 3, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY toNullable(toNullable(3)), toLowCardinality(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT POWER(3, 2), 3, materialize(3), 3, materialize(materialize(toUInt256(POWER(toNullable(3)), 3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), toUInt128(57) GROUP BY toNullable(toNullable(3)), toLowCardinality(3), 3 WITH CUBE Error on processing query 'SELECT POWER(3, 2), 3, materialize(3), 3, materialize(materialize(toUInt256(POWER(toNullable(3)), 3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), toUInt128(57) GROUP BY toNullable(toNullable(3)), toLowCardinality(3), 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(3, 2), 3, materialize(3), 3, materialize(materialize(toUInt256(POWER(toNullable(3)), 3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), toUInt128(57) GROUP BY toNullable(toNullable(3)), toLowCardinality(3), 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 509 out of 1000 SELECT POWER(3, 2), 3, 3, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY toNullable(3), toLowCardinality(3), 3 WITH ROLLUP WITH CUBE Error on processing query 'SELECT POWER(3, 2), 3, 3, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY toNullable(3), toLowCardinality(3), 3 WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 245 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 510 out of 1000 SELECT POWER(3, 2), 3, 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT POWER(3, power(materialize(materialize(3)), 2), 2), 3, 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE Error on processing query 'SELECT POWER(3, power(materialize(materialize(3)), 2), 2), 3, 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(3, power(materialize(materialize(3)), 2), 2), 3, 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 512 out of 1000 SELECT POWER(3, 2), 3, 3, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE Got boring AST Fuzzing step 513 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57) GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE Got boring AST Fuzzing step 515 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57) GROUP BY toNullable(3), toLowCardinality(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)) GROUP BY toNullable(3), toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)) GROUP BY toNullable(3), toLowCardinality(3), 3 Got boring AST Fuzzing step 518 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)) GROUP BY toNullable(3), toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(materialize(toLowCardinality(2)), 57)) GROUP BY toNullable(3), 3, 3 Error on processing query 'SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(materialize(toLowCardinality(2)), 57)) GROUP BY toNullable(3), 3, 3': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(3, 2), 3, 3, POW(toLowCardinality(toNullable(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(materialize(toLowCardinality(2)), 57)) GROUP BY toNullable(3), 3, 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 520 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)) GROUP BY toNullable(3), toLowCardinality(3), 3 Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57) GROUP BY toNullable(3), toLowCardinality(materialize(3)), materialize(toNullable(3)) Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY toNullable(3), toLowCardinality(materialize(3)), materialize(toNullable(3)) Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57 GROUP BY toNullable(3), toLowCardinality(3), materialize(toNullable(3)) Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57 GROUP BY 3, toLowCardinality(3), toNullable(3) Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, toNullable(3) Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57 GROUP BY 3, 3, toNullable(3) Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57 GROUP BY 3, 3, toNullable(3) Got boring AST Fuzzing step 528 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(3)) Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))) Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POWER(3, toLowCardinality(2)), POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POWER(3, toLowCardinality(2)), POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POWER(3, toLowCardinality(2)), POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 531 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, materialize(toUInt128(3)), POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(materialize(2), toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))) Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, materialize(toUInt128(3)), POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(materialize(2), toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, materialize(toUInt128(3)), POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(materialize(2), toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 532 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))) Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), materialize(3), 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(POWER(3, toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY toLowCardinality(3), 3, toNullable(toLowCardinality(materialize(3))) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), materialize(3), 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(POWER(3, toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY toLowCardinality(3), 3, toNullable(toLowCardinality(materialize(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), materialize(3), 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(POWER(3, toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY toLowCardinality(3), 3, toNullable(toLowCardinality(materialize(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 534 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(3)), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), toFixedString(materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(3)), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), toFixedString(materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(3)), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), toFixedString(materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 535 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, POWER(3, 2), 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57, 57 GROUP BY toNullable(toUInt256(3)), 3, toNullable(toLowCardinality(materialize(3))) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, POWER(3, 2), 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57, 57 GROUP BY toNullable(toUInt256(3)), 3, toNullable(toLowCardinality(materialize(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, POWER(3, 2), 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57, 57 GROUP BY toNullable(toUInt256(3)), 3, toNullable(toLowCardinality(materialize(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 536 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(materialize(materialize(3)), 3))) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(materialize(materialize(3)), 3)))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(materialize(materialize(3)), 3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 537 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(materialize(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))) Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(materialize(3), POWER(materialize(3), 2), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(materialize(3), POWER(materialize(3), 2), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(materialize(3), POWER(materialize(3), 2), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toNullable(toLowCardinality(materialize(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(materialize(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, toLowCardinality(materialize(3)) Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(materialize(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, materialize(3) Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(`Null`, materialize(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, materialize(3) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(`Null`, materialize(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, materialize(3)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'Null' in scope SELECT toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, 2), 3, 3, POW(toNullable(`Null`, materialize(3)), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57), 57 GROUP BY 3, 3, materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 542 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), POWER(3, 2), 3, 3, POW(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY toLowCardinality(3), 3, materialize(3) Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), 3, 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, 3, materialize(3) Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, toLowCardinality(2)), 3, 3, POW(toLowCardinality(toUInt256(3)), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, toNullable(2)), 57), 57 GROUP BY 3, 3, materialize(3) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, toLowCardinality(2)), 3, 3, POW(toLowCardinality(toUInt256(3)), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, toNullable(2)), 57), 57 GROUP BY 3, 3, materialize(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, toLowCardinality(2)), 3, 3, POW(toLowCardinality(toUInt256(3)), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), POWER(3, toNullable(2)), 57), 57 GROUP BY 3, 3, materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 545 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), 3, 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, toLowCardinality(3), materialize(3) Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, toLowCardinality(3), materialize(3) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, toLowCardinality(3), materialize(3) WITH CUBE Got boring AST Fuzzing step 548 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57)), 57 GROUP BY 3, toLowCardinality(materialize(toNullable(3))), 3 WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57)), 57 GROUP BY 3, toLowCardinality(materialize(toNullable(3))), 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57)), 57 GROUP BY 3, toLowCardinality(materialize(toNullable(3))), 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 549 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY GROUPING SETS ( (toNullable(3)), (toLowCardinality(3)), (materialize(3))) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY GROUPING SETS ((toNullable(3)), (toLowCardinality(3)), (materialize(3))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 550 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 57 GROUP BY 3, 3, materialize(3) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, 3, materialize(3) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, materialize(3) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(materialize(3)), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, toNullable(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, toNullable(3), 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, toNullable(3), 3 WITH CUBE Got boring AST Fuzzing step 557 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt128(3)), 57), 57 WITH TOTALS Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt128(3)), 57), 57 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 toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt128(3)), 57), 57 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 558 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, toNullable(3), 3 WITH CUBE Got boring AST Fuzzing step 559 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, POWER(materialize(3), materialize(2)), toUInt256(2)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, toNullable(3), 3 WITH CUBE Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, POWER(materialize(3), materialize(2)), toUInt256(2)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, toNullable(3), 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, POWER(materialize(3), materialize(2)), toUInt256(2)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, toNullable(3), 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 560 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 57 GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 563 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 565 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toNullable(57) WHERE POW(toLowCardinality(toNullable(3)), 2) GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toNullable(57) WHERE POW(toLowCardinality(toNullable(3)), 2) GROUP BY 3, 3, 3 WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 566 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(POWER(toNullable(3), materialize(2)), 3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(POWER(toNullable(3), materialize(2)), 3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(POWER(toNullable(3), materialize(2)), 3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY 3, 3, 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 567 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), toNullable(3), 3, POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, 3, 3 WITH CUBE Got boring AST Fuzzing step 570 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(toUInt256(3))), POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(toUInt256(3))), POW(2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57) GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(toUInt256(3))), POW(2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57) GROUP BY 3, 3, 3 WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(toUInt256(3))), POW(2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57) GROUP BY 3, 3, 3 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 572 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(3)), POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, 3, 3 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(3)), POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, 3, 3 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 573 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(toUInt256(toUInt128(3)))), POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, 3, 3 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), POWER(3, 2), 3, materialize(toLowCardinality(toUInt256(toUInt128(3)))), POW(3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3, toLowCardinality(3), 3 WITH CUBE Current AST is too long, discarding it and using the original AST as a start Fuzzing step 575 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 576 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 577 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 578 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 579 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 581 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 582 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 583 out of 1000 EXPLAIN AST graph = true, optimize = true SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(3), materialize(2)) Error on processing query 'EXPLAIN AST graph = true, optimize = true SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(3), materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 584 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(toNullable(3)), materialize(materialize(2))) Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(materialize(3), 2), POWER(toNullable(toNullable(3)), materialize(materialize(2))) Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(toNullable(3)), materialize(materialize(2))) Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(toNullable(3)), materialize(materialize(2))) Got boring AST Fuzzing step 588 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, POWER(toLowCardinality(3), toNullable(2)), 2), POWER(toNullable(toNullable(3)), materialize(2)) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, POWER(toLowCardinality(3), toNullable(2)), 2), POWER(toNullable(toNullable(3)), materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, POWER(toLowCardinality(3), toNullable(2)), 2), POWER(toNullable(toNullable(3)), materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 589 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(toNullable(toNullable(3)), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 593 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 594 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 595 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 597 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 598 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 601 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 602 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 603 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 604 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 606 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 607 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 608 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 609 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 611 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 612 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 613 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 614 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 615 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 616 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 617 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 618 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 619 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 620 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 621 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 624 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 625 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 626 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Got boring AST Fuzzing step 627 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 629 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 2) Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 2) Got boring AST Fuzzing step 631 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(toNullable(3), 2) Got boring AST Fuzzing step 632 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Got boring AST Fuzzing step 634 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Got boring AST Fuzzing step 635 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Got boring AST Fuzzing step 636 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Got boring AST Fuzzing step 637 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Got boring AST Fuzzing step 638 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Got boring AST Fuzzing step 639 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(toLowCardinality(3), 3, toLowCardinality(2)), POWER(3, 2) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(toLowCardinality(3), 3, toLowCardinality(2)), POWER(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(toLowCardinality(3), 3, toLowCardinality(2)), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 640 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toLowCardinality(2)), POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 641 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) Got boring AST Fuzzing step 643 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) Got boring AST Fuzzing step 644 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 646 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 647 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 648 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 649 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 650 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 651 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 652 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 653 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE toUInt256(3) GROUP BY pow(3, 2), POWER(2) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE toUInt256(3) GROUP BY pow(3, 2), POWER(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE toUInt256(3) GROUP BY pow(3, 2), POWER(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 654 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(57). In query SELECT '01473_metric_log_table_event_start_time_microseconds_test' WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 655 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, toNullable(2)), POWER(3, materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ( (pow(3, toNullable(2))), (POWER(3, materialize(2)))) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY GROUPING SETS ((pow(3, toNullable(2))), (POWER(3, materialize(2)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 657 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 659 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 660 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test' GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 661 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 664 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 666 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test'), 57) GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test'), 57) GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) 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 toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test'), 57) GROUP BY pow(3, toLowCardinality(2)), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 667 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 670 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 WITH TOTALS Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 671 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY pow(3, toNullable(toUInt256(2))), POWER(3, 2) WITH CUBE Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY pow(3, toNullable(toUInt256(2))), POWER(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY pow(3, toNullable(toUInt256(2))), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 672 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 674 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 675 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 676 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 677 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 678 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, toLowCardinality(toLowCardinality(3)), 2), POWER(3, 2) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, toLowCardinality(toLowCardinality(3)), 2), POWER(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, toLowCardinality(toLowCardinality(3)), 2), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 679 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 680 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3, toNullable(2)), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 SELECT POW(3, materialize(toLowCardinality(2))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3), POWER(3, 2) Error on processing query 'SELECT POW(3, materialize(toLowCardinality(2))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3), POWER(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, materialize(toLowCardinality(2))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY pow(3), POWER(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ( (pow(3, toNullable(2))), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, toNullable(2))), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, toNullable(2))), (POWER(3, 2))) Got boring AST Fuzzing step 686 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, toNullable(2))), (POWER(3, 2))) Got boring AST Fuzzing step 687 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 689 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 690 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 691 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 692 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 693 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 694 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 697 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 698 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 700 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 701 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 702 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 703 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 706 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 707 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 708 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 709 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 712 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 713 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 715 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 717 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 718 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 719 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 720 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 721 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 722 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 723 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 726 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 731 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 732 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(toNullable(toUInt128(3)), 57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(toNullable(toUInt128(3)), 57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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 '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(toNullable(toUInt128(3)), 57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f8a2f 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 733 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 734 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 737 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 738 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 740 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 741 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 743 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 744 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 746 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 747 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 748 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 750 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 751 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 752 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 753 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 755 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 756 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 757 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 759 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 762 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 763 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 764 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 767 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 770 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 771 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 772 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 773 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 774 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 778 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 779 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 782 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) WHERE toLowCardinality(materialize(toLowCardinality(3))) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57) WHERE toLowCardinality(materialize(toLowCardinality(3))) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 784 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(toLowCardinality(3)) GROUP BY GROUPING SETS ( (pow(toNullable(3), 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(toLowCardinality(3)) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(toLowCardinality(3)) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 787 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(toLowCardinality(3)) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 788 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(toLowCardinality(3)) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 789 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 791 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, 2))) Got boring AST Fuzzing step 792 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 795 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 796 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 800 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 801 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 802 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 803 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(toNullable(3), toNullable(2))))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(toNullab. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 804 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 805 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 806 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(3), toNullable(2)))) Got boring AST Fuzzing step 807 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(toNullable(toUInt256(3)), 2))) Error on processing query 'SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(toNullable(toUInt256(3)), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57 WHERE toLowCardinality(3) GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(toNullable(toUInt256(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 810 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), materialize(57) WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), materialize(57) WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, toNullable(2)))) Got boring AST Fuzzing step 812 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), materialize(57) GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, 2) Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, 2) Got boring AST Fuzzing step 815 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, 2) Got boring AST Fuzzing step 816 out of 1000 SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, toNullable(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('toFixedString'): toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57 GROUP BY pow(3, 2), POWER(3, toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 819 out of 1000 SELECT toFixedString(57), 57, 57 GROUP BY pow(3, 2), POWER(materialize(3), 2) Error on processing query 'SELECT toFixedString(57), 57, 57 GROUP BY pow(3, 2), POWER(materialize(3), 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(57), 57, 57 GROUP BY pow(3, 2), POWER(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 820 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) Got boring AST Fuzzing step 822 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57)), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE Got boring AST Fuzzing step 825 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 827 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 828 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 829 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(materialize(toLowCardinality(57)))), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(toUInt128(3), 2) WITH CUBE Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(materialize(toLowCardinality(57)))), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(toUInt128(3), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(materialize(toLowCardinality(57)))), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(toUInt128(3), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e423cb0 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 831 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 833 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 834 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 835 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 PREWHERE 100 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 PREWHERE 100 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 836 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, toUInt256(2)), POWER(3, 2) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, toUInt256(2)), POWER(3, 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, toUInt256(2)), POWER(3, 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 837 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 838 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 839 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), materialize(57), 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), materialize(57), 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 841 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), materialize(57), 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 842 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 844 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, materialize(toNullable(2))) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 847 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(toLowCardinality(toUInt128(3)), 3) GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(toLowCardinality(toUInt128(3)), 3) GROUP BY pow(3, 2), POWER(3, toNullable(2)) 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 '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(toLowCardinality(toUInt128(3)), 3) GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 848 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 849 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, toLowCardinality(2)), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, toLowCardinality(2)), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 851 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 PREWHERE POW(3, toLowCardinality(2)) WHERE toNullable(3) GROUP BY pow(3, toLowCardinality(2)), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 PREWHERE POW(3, toLowCardinality(2)) WHERE toNullable(3) GROUP BY pow(3, toLowCardinality(2)), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 852 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 WHERE toNullable(3) GROUP BY pow(3, toLowCardinality(2)), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 853 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 GROUP BY pow(3), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 GROUP BY pow(3), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 GROUP BY pow(3), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 855 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 856 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 858 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY GROUPING SETS ( (pow(3, 2)), (POWER(3, toNullable(2)))) WITH CUBE WITH TOTALS Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY GROUPING SETS ((pow(3, 2)), (POWER(3, toNullable(2)))) WITH CUBE 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 859 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 860 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 863 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(3, toNullable(2)) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 864 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(materialize(toLowCardinality(toNullable(toUInt256(3)))), 2) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(materialize(toLowCardinality(toNullable(toUInt256(3)))), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(materialize(toLowCardinality(toNullable(toUInt256(3)))), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 866 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(materialize(toNullable(57))) PREWHERE toUInt128(3) GROUP BY pow(toLowCardinality(toUInt256(toUInt128(3)), 3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(materialize(toNullable(57))) PREWHERE toUInt128(3) GROUP BY pow(toLowCardinality(toUInt256(toUInt128(3)), 3), 2), POWER(3, 2) 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 '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(materialize(toNullable(57))) PREWHERE toUInt128(3) GROUP BY pow(toLowCardinality(toUInt256(toUInt128(3)), 3), 2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 867 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 868 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 869 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 871 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), PO. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 872 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 874 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), PO. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 875 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 876 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 877 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(toNullable(57))) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUB. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 880 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 881 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 882 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUB. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 883 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 884 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 885 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 887 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 888 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 890 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toNullable(57)) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 894 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 895 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 896 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 897 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toNullable(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 899 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 902 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 903 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) WHERE toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) WHERE toUInt128(toLowCardinality(toLowCardinality(2))) GROUP BY pow(3, 2), POWER(3, 2) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 904 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY pow(3, pow(materialize(toLowCardinality(3)), toNullable(3), materialize(materialize(2))), 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY pow(3, pow(materialize(toLowCardinality(3)), toNullable(3), materialize(materialize(2))), 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY pow(3, pow(materialize(toLowCardinality(3)), toNullable(3), materialize(materialize(2))), 2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 905 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 906 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 907 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 908 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(3)), '01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(materialize(toLowCardinality(3)), '01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) 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 toLowCardinality(materialize(toLowCardinality(3)), '01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 909 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 910 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 911 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, materialize(2)), POWER(3, materialize(toNullable(toUInt128(2)))) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, materialize(2)), POWER(3, materialize(toNullable(toUInt128(2)))) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) GROUP BY pow(3, materialize(2)), POWER(3, materialize(toNullable(toUInt128(2)))) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 912 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) PREWHERE toLowCardinality(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toLowCardinality(57) PREWHERE toLowCardinality(3) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 913 out of 1000 SELECT toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57, toUInt128(57), 57 GROUP BY pow(toUInt128(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57, toUInt128(57), 57 GROUP BY pow(toUInt128(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57, toUInt128(57), 57 GROUP BY pow(toUInt128(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 914 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toUInt128(57)), 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT toLowCardinality(pow(toLowCardinality(3), 2), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toUInt128(57)), 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(pow(toLowCardinality(3), 2), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toUInt128(57)), 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) 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 toLowCardinality(pow(toLowCardinality(3), 2), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toUInt128(57)), 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 916 out of 1000 SELECT toLowCardinality(materialize(toUInt128(57)), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toUInt128(toLowCardinality(57))), 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT toLowCardinality(materialize(toUInt128(57)), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toUInt128(toLowCardinality(57))), 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) 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 toLowCardinality(materialize(toUInt128(57)), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toUInt128(toLowCardinality(57))), 57, toLowCardinality(57) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 917 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 919 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toUInt128(57), 57, 57 GROUP BY pow(toLowCardinality(toNullable(3)), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), 57, 57 GROUP BY pow(toLowCardinality(toNullable(3)), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(toLowCardinality(toNullable(3)), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(toLowCardinality(toNullable(3)), toLowCardinality(2)), POWER(2) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(toLowCardinality(toNullable(3)), toLowCardinality(2)), POWER(2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(toLowCardinality(toNullable(3)), toLowCardinality(2)), POWER(2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 923 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(toLowCardinality(toNullable(3)), 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 924 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(toLowCardinality(3), 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 927 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(toUInt256(57)), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, materialize(toUInt128(2))), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, materialize(toUInt128(2))), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, materialize(toUInt128(2))), POWER(3, 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 929 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 931 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 932 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 933 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(57)), 57, 57 GROUP BY pow(3), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(57)), 57, 57 GROUP BY pow(3), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(57)), 57, 57 GROUP BY pow(3), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 934 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 935 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH CUBE WITH TOTALS Got boring AST Fuzzing step 936 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toUInt128(toLowCardinality(2)), 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toUInt128(toLowCardinality(2)), 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57 GROUP BY pow(3, 2), POWER(3, toUInt128(toLowCardinality(2)), 2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 937 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57), 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 940 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, 2), POWER(3, POWER(3, 2), 2) WITH CUBE Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, 2), POWER(3, POWER(3, 2), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, 2), POWER(3, POWER(3, 2), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 943 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 944 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 946 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 947 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 948 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE Got boring AST Fuzzing step 949 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE materialize(toUInt128(3)) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE materialize(toUInt128(3)) GROUP BY pow(3, 2), POWER(3, 2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 951 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 953 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(materialize(3), 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE materialize(materialize(3)) GROUP BY pow(materialize(3), 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE materialize(materialize(3)) GROUP BY pow(materialize(3), 2), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 955 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), materialize(3), toLowCardinality(2)), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), materialize(3), toLowCardinality(2)), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)), materialize(3), toLowCardinality(2)), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 956 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 958 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(power(toNullable(3), 2), 3, 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(power(toNullable(3), 2), 3, 2), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(power(toNullable(3), 2), 3, 2), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 959 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 960 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 961 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 962 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 963 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, power(3, toNullable(2)), 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, power(3, toNullable(2)), 2), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, power(3, toNullable(2)), 2), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 964 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT toNullable(toNullable(toLowCardinality(toUInt128(3)), 57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT toNullable(toNullable(toLowCardinality(toUInt128(3)), 57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) 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 toNullable(toNullable(toLowCardinality(toUInt128(3)), 57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 966 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toUInt128(57)), toNullable(57), 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toUInt128(57)), toNullable(57), 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 968 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toUInt128(57)), toNullable(57), 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 969 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), toNullable(57), 57 GROUP BY pow(3, 2), POWER(2) WITH TOTALS Error on processing query 'SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), toNullable(57), 57 GROUP BY pow(3, 2), POWER(2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57), toNullable(57), 57 GROUP BY pow(3, 2), POWER(2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 970 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toUInt128(57)), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 SELECT toNullable(toNullable(57)), materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57), 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 975 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 976 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 977 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 978 out of 1000 SELECT toNullable(toNullable(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 979 out of 1000 SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(2), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(2), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 980 out of 1000 SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 982 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(POW(3, 2), 3, toUInt256(2)), POWER(3, 2) WITH ROLLUP WITH TOTALS Error on processing query 'SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(POW(3, 2), 3, toUInt256(2)), POWER(3, 2) WITH ROLLUP WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(POW(3, 2), 3, toUInt256(2)), POWER(3, 2) WITH ROLLUP WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 984 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(toNullable(3), 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 987 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE toNullable(toUInt128(57)) GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE toNullable(toUInt128(57)) GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 988 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, POW(toLowCardinality(toNullable(3)), 2), 2), POWER(3, 2) WITH TOTALS Error on processing query 'SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, POW(toLowCardinality(toNullable(3)), 2), 2), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, POW(toLowCardinality(toNullable(3)), 2), 2), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 989 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 990 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 991 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, 2) WITH TOTALS Got boring AST Fuzzing step 992 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 EXPLAIN QUERY TREE SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE toNullable(toNullable(3)) GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS Error on processing query 'SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 PREWHERE toNullable(toNullable(3)) GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 995 out of 1000 EXPLAIN ESTIMATE SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 EXPLAIN SYNTAX SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 EXPLAIN SYNTAX SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS Got boring AST Fuzzing step 998 out of 1000 EXPLAIN ESTIMATE SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, materialize(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 EXPLAIN ESTIMATE SELECT 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY pow(3, 2), POWER(3, materialize(2)) 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 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)) Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)) Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT -2147483647 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(equals(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), materialize(toLowCardinality(toUInt256(toUInt128(3)))), 0), 'ok', toString(toNullable(toUInt128(57)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT -2147483647) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(equals(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), materialize(toLowCardinality(toUInt256(toUInt128(3)))), 0), 'ok', toString(toNullable(toUInt128(57)), time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 5 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)) Got boring AST Fuzzing step 6 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)) Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)) Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)) Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toLowCardinality(toNullable('ok')), toString(toUInt128(57), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toLowCardinality(toNullable('ok')), toString(toUInt128(57), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toLowCardinality(toNullable('ok')), toString(toUInt128(57), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 10 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), materialize(2)), time)) Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toNullable(toLowCardinality(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize(toNullable(toLowCardinality(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize(toNullable(toLowCardinality(3)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 12 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff(materialize(toLowCardinality('second')), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(57, POWER(toNullable(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff(materialize(toLowCardinality('second')), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(57, POWER(toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 3 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(57, POWER(toNullable(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a55cf 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 13 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)) Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 65535 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 65535) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 15 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(toUInt128(2), 57), POWER(toNullable(toUInt256(2)), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 WITH ( SELECT event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 17 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2, 57), POWER(toNullable(toUInt256(2)), 3, 2), time)) GROUP BY power(materialize(materialize(3)), 2), toUInt256(2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2, 57), POWER(toNullable(toUInt256(2)), 3, 2), time)) GROUP BY power(materialize(materialize(3)), 2), toUInt256(2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2, 57), POWER(toNullable(toUInt256(2)), 3, 2), time)) GROUP BY power(materialize(materialize(3)), 2), toUInt256(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 18 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) Got boring AST Fuzzing step 21 out of 1000 WITH ( SELECT event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) Error on processing query 'WITH (SELECT event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 22 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(materialize(3)), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(materialize(3)), 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(materialize(3)), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 23 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(2, toLowCardinality(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(2, toLowCardinality(3), 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(2, toLowCardinality(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 24 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) Got boring AST Fuzzing step 26 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) ASC NULLS LAST, event_time DESC LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) ASC NULLS LAST, event_time DESC LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) ASC NULLS LAST, event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 27 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toUInt256(materialize(toUInt256(3))), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toUInt128(57), POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toUInt256(materialize(toUInt256(3))), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toUInt128(57), POWER(2, 3), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 3rd argument 'enddate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: UInt256: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toUInt256(materialize(toUInt256(3))), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toUInt128(57), POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 30 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Got boring AST Fuzzing step 31 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 32 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toUInt128(2, 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toUInt128(2, 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time))': 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 (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toUInt128(2, 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 33 out of 1000 WITH ( SELECT toLowCardinality(2), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT toLowCardinality(2), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 4 arguments: In scope WITH (SELECT toLowCardinality(2), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 34 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Got boring AST Fuzzing step 35 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(power(materialize(3), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(power(materialize(3), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(power(materialize(3), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 36 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) PREWHERE toNullable(materialize(3)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) PREWHERE toNullable(materialize(3))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 37 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY POW(materialize(2, 3), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(POW(3, toLowCardinality(2)), 3), 2), time)) ORDER BY event_time ASC NULLS FIRST LIMIT 256 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY POW(materialize(2, 3), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(POW(3, toLowCardinality(2)), 3), 2), time)) ORDER BY event_time ASC NULLS FIRST LIMIT 256) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY POW(materialize(2, 3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(POW(3, toLowCardinality(2)), 3), 2), time)) ORDER BY event_time ASC NULLS FIRST LIMIT 256) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 38 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toLowCardinality(57), POWER(toNullable(2), 3), time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toLowCardinality(57), POWER(toNullable(2), 3), time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString('01473_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 39 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toNullable(materialize(2)), 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toNullable(materialize(2)), 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toNullable(materialize(2)), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 41 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize(POWER(3, toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) WHERE materialize(materialize(3), toNullable(3)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize(POWER(3, toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) WHERE materialize(materialize(3), toNullable(3))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize(POWER(3, toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) WHERE materialize(materialize(3), toNullable(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 42 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(toNullable(2), 3), time)) Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), if(dateDiff('second', toDateTime(time.1), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 44 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Got boring AST Fuzzing step 46 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT -2 ) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT -2) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 47 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT -2 ) AS time SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(materialize(3), time.2)) = toNullable(0), 'ok', toString(2, toLowCardinality(57), POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT -2) AS time SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(materialize(3), time.2)) = toNullable(0), 'ok', toString(2, toLowCardinality(57), POWER(2, 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT -2) AS time SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(materialize(3), time.2)) = toNullable(0), 'ok', toString(2, toLowCardinality(57), POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 48 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize(toLowCardinality(materialize(toLowCardinality(3))), '01473_metric_log_table_event_start_time_microseconds_test'), 57)), power(toNullable(3), toNullable(2)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize(toLowCardinality(materialize(toLowCardinality(3))), '01473_metric_log_table_event_start_time_microseconds_test'), 57)), power(toNullable(3), toNullable(2)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize(toLowCardinality(materialize(toLowCardinality(3))), '01473_metric_log_table_event_start_time_microseconds_test'), 57)), power(toNullable(3), toNullable(2)), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 49 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(POWER(2, toLowCardinality(3), 2), toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, materialize(3)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(POWER(2, toLowCardinality(3), 2), toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, materialize(3)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(POWER(2, toLowCardinality(3), 2), toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, materialize(3)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 50 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), 1, toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), 1, toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), 1, toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 51 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(time.1)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 52 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Got boring AST Fuzzing step 53 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 WITH ( SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 56 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, toNullable(3)), time)) Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 59 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), materialize(2), 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), materialize(2), 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 4 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(2), 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 61 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 62 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if('ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if('ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 4 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if('ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 63 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 64 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 'second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(toUInt256(0)), 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 'second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(toUInt256(0)), 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(57): In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 'second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt256(0)), 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 66 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 WITH ( SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 68 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Got boring AST Fuzzing step 69 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Got boring AST Fuzzing step 70 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY materialize(toNullable(toLowCardinality(3))) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY materialize(toNullable(toLowCardinality(3))) ORDER BY event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, time))': Received from localhost:9000. DB::Exception: Column system.metric_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY materialize(toNullable(toLowCardinality(3))) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 73 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) PREWHERE toNullable(toNullable(3)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) PREWHERE toNullable(toNullable(3))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 74 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 75 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) ASC, event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(equals(dateDiff('second', toDateTime(time.2)), 0, 0), 'ok', toString(2, 57, POWER(2, toUInt256(3)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) ASC, event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(equals(dateDiff('second', toDateTime(time.2)), 0, 0), 'ok', toString(2, 57, POWER(2, toUInt256(3)), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) ASC, event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(equals(dateDiff('second', toDateTime(time.2)), 0, 0), 'ok', toString(2, 57, POWER(2, toUInt256(3)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 76 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) PREWHERE toNullable(toNullable(toUInt256(3))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) PREWHERE toNullable(toNullable(toUInt256(3)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 77 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 78 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT -9223372036854775807 ) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT -9223372036854775807) AS time SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 79 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 WITH ( SELECT event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 82 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2), time)), 2))) = 0, 'ok', toString(2, 57, POWER(2, toNullable(3)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2), time)), 2))) = 0, 'ok', toString(2, 57, POWER(2, toNullable(3)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2), time)), 2))) = 0, 'ok', toString(2, 57, POWER(2, toNullable(3)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 83 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(3), time)) GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(3), time)) GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(3), time)) GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 84 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize(POWER(toUInt256(2), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize(POWER(toUInt256(2), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize(POWER(toUInt256(2), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 86 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(pow(3, 2), time.2)) = 0, toLowCardinality('ok'), toString(toNullable(2), 57, POWER(2, toNullable(3)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(pow(3, 2), time.2)) = 0, toLowCardinality('ok'), toString(toNullable(2), 57, POWER(2, toNullable(3)), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(time.1), toDateTime(pow(3, 2), time.2)) = 0, toLowCardinality('ok'), toString(toNullable(2), 57, POWER(2, toNullable(3)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 89 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) GROUP BY POW(materialize(3), POWER(3, 2), 2), toUInt128(materialize(toLowCardinality(2))), toString(toNullable(toUInt128(57)), time), POWER(toNullable(2), toLowCardinality(3), 2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) GROUP BY POW(materialize(3), POWER(3, 2), 2), toUInt128(materialize(toLowCardinality(2))), toString(toNullable(toUInt128(57)), time), POWER(toNullable(2), toLowCardinality(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) GROUP BY POW(materialize(3), POWER(3, 2), 2), toUInt128(materialize(toLowCardinality(2))), toString(toNullable(toUInt128(57)), time), POWER(toNullable(2), toLowCardinality(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 92 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Got boring AST Fuzzing step 93 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)) Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 95 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(power(3, 2), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(power(3, 2), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(power(3, 2), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 96 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 97 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(3)), time)) Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)) Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 WITH ( SELECT event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(POWER(3, toLowCardinality(2)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)) Error on processing query 'WITH (SELECT event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(POWER(3, toLowCardinality(2)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(POWER(3, toLowCardinality(2)), time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 100 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)) Got boring AST Fuzzing step 101 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 103 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) Got boring AST Fuzzing step 104 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 105 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)) Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 107 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 109 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Got boring AST Fuzzing step 110 out of 1000 WITH ( SELECT toFixedString(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57)), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, toLowCardinality(57), POWER(POW(3, 2), 2), time)) Error on processing query 'WITH (SELECT toFixedString(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57)), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, toLowCardinality(57), POWER(POW(3, 2), 2), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 4 arguments: In scope WITH (SELECT toFixedString(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(57)), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, toLowCardinality(57), POWER(POW(3, 2), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 111 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 112 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Got boring AST Fuzzing step 114 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) WHERE POWER(toLowCardinality(3), 2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) WHERE POWER(toLowCardinality(3), 2)': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 116 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime('01473_metric_log_table_event_start_time_microseconds_test', time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime('01473_metric_log_table_event_start_time_microseconds_test', time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, if(dateDiff('second', toDateTime(time.1), toDateTime('01473_metric_log_table_event_start_time_microseconds_test', time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 117 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 2147483648 ) AS time SELECT materialize(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 2147483648) AS time SELECT materialize(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 119 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2)))), 2), time)) Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) Got boring AST Fuzzing step 122 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 0 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff(materialize('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 0) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff(materialize('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 123 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 124 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) Got boring AST Fuzzing step 126 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(3, time, 2))) = 0, 'ok', toString(2, 57, POWER(POW(toUInt256(2))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(3, time, 2))) = 0, 'ok', toString(2, 57, POWER(POW(toUInt256(2))), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual UInt8: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(3, time, 2))) = 0, 'ok', toString(2, 57, POWER(POW(toUInt256(2))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 127 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toString(2, 57, POWER(POW(3, toUInt256(2))), time)) PREWHERE toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toString(2, 57, POWER(POW(3, toUInt256(2))), time)) PREWHERE toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(2, 57, POWER(POW(3, toUInt256(2))), time)) PREWHERE toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 128 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 129 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, POWER(materialize(toNullable(toLowCardinality(3))), 2), 2))) = 0, 'ok', toString(2, 57, POWER(POW(toUInt128(3), toUInt256(2))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, POWER(materialize(toNullable(toLowCardinality(3))), 2), 2))) = 0, 'ok', toString(2, 57, POWER(POW(toUInt128(3), toUInt256(2))), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, POWER(materialize(toNullable(toLowCardinality(3))), 2), 2))) = 0, 'ok', toString(2, 57, POWER(POW(toUInt128(3), toUInt256(2))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 130 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) Got boring AST Fuzzing step 131 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(equals(0), 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(equals(0), 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(equals(0), 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 132 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY pow(3, materialize(2)), POW(toLowCardinality(toNullable(toUInt256(3))), 2), toString(toUInt128(2, 57), POWER(2, 3, toLowCardinality(2)), time), toUInt128(materialize(power(toNullable(toNullable(3)), toNullable(2)), toLowCardinality(2))) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY pow(3, materialize(2)), POW(toLowCardinality(toNullable(toUInt256(3))), 2), toString(toUInt128(2, 57), POWER(2, 3, toLowCardinality(2)), time), toUInt128(materialize(power(toNullable(toNullable(3)), toNullable(2)), toLowCardinality(2))) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY pow(3, materialize(2)), POW(toLowCardinality(toNullable(toUInt256(3))), 2), toString(toUInt128(2, 57), POWER(2, 3, toLowCardinality(2)), time), toUInt128(materialize(power(toNullable(toNullable(3)), toNullable(2)), toLowCardinality(2))) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 133 out of 1000 WITH ( SELECT event_time_microseconds, toUInt128(2), event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, toUInt128(2), event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, toUInt128(2), event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 134 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)) Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 EXPLAIN `header, description` = true, sorting = true WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)) Error on processing query 'EXPLAIN `header, description` = true, sorting = true WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT toNullable(57), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 136 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 65537 ) AS time SELECT 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 65537) AS time SELECT 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 141 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) Got boring AST Fuzzing step 142 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test'), 57, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 143 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)) Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)) Got boring AST Fuzzing step 145 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toLowCardinality(toNullable(57)), POWER(2, toNullable(toUInt256(2)), 3, 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(2)), 2), time)), 3, 2), 2, materialize(materialize(3))), time)), 'second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toLowCardinality(toNullable(57)), POWER(2, toNullable(toUInt256(2)), 3, 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(2)), 2), time)), 3, 2), 2, materialize(materialize(3))), time)), 'second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 4, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), toLowCardinality(toNullable(57)), POWER(2, toNullable(toUInt256(2)), 3, 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(2)), 2), time)), 3, 2), 2, materialize(materialize(3))), time)), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 146 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log WHERE toString(2, 57, POWER(POW(3, 2), 2), time) ORDER BY POWER(toLowCardinality(3), 2) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log WHERE toString(2, 57, POWER(POW(3, 2), 2), time) ORDER BY POWER(toLowCardinality(3), 2) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.metric_log WHERE toString(2, 57, POWER(POW(3, 2), 2), time) ORDER BY POWER(toLowCardinality(3), 2) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 147 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, materialize(2)), time), POWER(POW(3, 2)), time)) Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time)) PREWHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time)) PREWHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time)) PREWHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 149 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time)) Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)) Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)) Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS FIRST, event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)) Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) DESC NULLS LAST, event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)) Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY POWER(toLowCardinality(3), 2) ASC NULLS FIRST, event_time DESC LIMIT 1 ) AS time SELECT toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), if(equals(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2))), 'ok'), time)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 155 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1025 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1025) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 156 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 157 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 158 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT -1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT -1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 159 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log WHERE POW(materialize(3), 2) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT pow(toUInt128(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(POWER(2, 3), time), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log WHERE POW(materialize(3), 2) ORDER BY event_time DESC LIMIT 1) AS time SELECT pow(toUInt128(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(POWER(2, 3), time), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log WHERE POW(materialize(3), 2) ORDER BY event_time DESC LIMIT 1) AS time SELECT pow(toUInt128(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(POWER(2, 3), time), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 160 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 162 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 256 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 256) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 163 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(2), if(equals(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toNullable(2), if(equals(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toNullable(2), if(equals(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 166 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 167 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toUInt256(2))))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toUInt256(2))))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toNullable(2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toUInt256(2))))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 169 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 171 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 172 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 173 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1023 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1023) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 174 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1024 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1024) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 175 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(toUInt256(materialize(3)), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(toUInt256(materialize(3)), time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime64(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(toUInt256(materialize(3)), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 176 out of 1000 WITH ( SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(2), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(2), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(2), time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 177 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 178 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff(POW(3, toNullable(2)), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT 2, if(dateDiff(POW(3, toNullable(2)), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT 2, if(dateDiff(POW(3, toNullable(2)), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 179 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY POWER(toNullable(3), 2), toNullable(toNullable(toUInt256(3))), POWER(3, materialize(2)) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY POWER(toNullable(3), 2), toNullable(toNullable(toUInt256(3))), POWER(3, materialize(2)) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.metric_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.metric_log GROUP BY POWER(toNullable(3), 2), toNullable(toNullable(toUInt256(3))), POWER(3, materialize(2)) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 182 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 183 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 189 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY toUInt256(2), 57, POW(materialize(3), 2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY toUInt256(2), 57, POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 2]. In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY toUInt256(2), 57, POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 190 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 191 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 256 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 256) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 192 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 193 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 194 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 195 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT materialize(toNullable(3)), 2, if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize(toNullable(3)), 2, if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT materialize(toNullable(3)), 2, if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 196 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 197 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, materialize(materialize(toNullable('ok'))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, materialize(materialize(toNullable('ok'))), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, materialize(materialize(toNullable('ok'))), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 199 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 200 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(equals(57, dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(equals(57, dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(equals(57, dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 201 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 202 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1023 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1023) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 203 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 204 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1048575 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1048575) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 205 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 206 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(equals(POW(materialize(3), POWER(materialize(3), 2), 2), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT 2, if(equals(POW(materialize(3), POWER(materialize(3), 2), 2), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT 2, if(equals(POW(materialize(3), POWER(materialize(3), 2), 2), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 207 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 208 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 EXPLAIN PIPELINE header = true WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT -2147483649 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE header = true WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT -2147483649) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 210 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 212 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 215 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 216 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 217 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 218 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 219 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 220 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 221 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 222 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log WHERE if(equals(toNullable(toLowCardinality(toUInt128(3)), 57), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 0), 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2), time)), 2))) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log WHERE if(equals(toNullable(toLowCardinality(toUInt128(3)), 57), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 0), 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2), time)), 2))) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope (SELECT event_time_microseconds, event_time FROM system.metric_log WHERE if(equals(toNullable(toLowCardinality(toUInt128(3)), 57), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3), time)) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 223 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 224 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 225 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 226 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 227 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 228 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 229 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 230 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 231 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 232 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 233 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 234 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 235 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 236 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 237 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 238 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 239 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 240 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 241 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 242 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 243 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 244 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 245 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 246 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 247 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 248 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 249 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 250 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 251 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 252 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 253 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 254 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 255 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 256 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 257 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 258 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 259 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 260 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 261 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 262 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 263 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 264 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 265 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 266 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 267 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 268 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 269 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 270 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 271 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 272 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 273 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 274 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 275 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 276 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 277 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 278 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 279 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 280 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 281 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 282 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 283 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 284 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 285 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 286 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 287 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 288 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 289 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 290 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 291 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 292 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 293 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 294 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 295 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 296 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 297 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 298 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 299 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 300 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 301 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 302 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 303 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 304 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 305 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 306 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 307 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 308 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 309 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 310 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 311 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 312 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 313 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 314 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 315 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 316 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 317 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 318 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 319 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 320 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 321 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 322 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 323 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 324 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 325 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 326 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 327 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 328 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 329 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 330 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 331 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 332 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 333 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 334 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 335 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 336 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 337 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 338 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 339 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 340 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 341 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 342 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 343 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 344 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 345 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 346 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 347 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 348 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 349 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 350 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 351 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 352 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 353 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 354 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 355 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 356 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 357 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 358 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 359 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 360 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 361 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 362 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 363 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 364 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 365 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 366 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 367 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 368 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 369 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 370 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 371 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 372 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 373 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 374 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 375 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 376 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 377 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 378 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 379 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 380 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 381 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 382 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 383 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 384 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 385 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 386 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 387 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 388 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 389 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 390 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 391 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 392 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 393 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 394 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 395 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 396 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 397 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 398 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 399 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 400 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 401 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 402 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 403 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 404 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 405 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 406 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 407 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 408 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 409 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 410 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 411 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 412 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 413 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 414 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 415 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 416 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 417 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 418 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 419 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 420 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 421 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 422 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 423 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 424 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 425 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 426 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 427 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 428 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 429 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 430 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 431 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 432 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 433 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 434 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 435 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 436 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 437 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 438 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 439 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 440 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 441 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 442 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 443 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 444 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 445 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 446 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 447 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 448 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 449 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 450 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 451 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 452 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 453 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 454 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 455 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 456 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 457 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 458 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 459 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 460 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(tupleElement(sleep(2), time, 2))) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(tupleElement(sleep(2), time, 2))) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(tupleElement(sleep(2), time, 2))) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 461 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 462 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 463 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 464 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 465 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 466 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 467 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 468 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 469 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 470 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 471 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 472 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 473 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 474 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 475 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 476 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 477 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 0 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 0) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 478 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 479 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 480 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 481 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 482 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 483 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 484 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 485 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 486 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 487 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 488 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 489 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 490 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 491 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 492 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 493 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 494 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 495 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 496 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 497 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 498 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 499 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 500 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 501 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 502 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 503 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 504 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 505 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 506 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 507 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 508 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 509 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 510 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 511 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 512 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 513 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 514 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 515 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 516 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 517 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 518 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 520 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 521 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 522 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 523 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 524 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 525 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 526 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 527 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 528 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 529 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 530 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 531 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 532 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 533 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 534 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 535 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))) = 0, materialize('ok'), toString(time)) GROUP BY toLowCardinality(2), toString(2, 57, POWER(materialize(2), 3), time), toLowCardinality(toUInt128(3)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))) = 0, materialize('ok'), toString(time)) GROUP BY toLowCardinality(2), toString(2, 57, POWER(materialize(2), 3), time), toLowCardinality(toUInt128(3))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))) = 0, materialize('ok'), toString(time)) GROUP BY toLowCardinality(2), toString(2, 57, POWER(materialize(2), 3), time), toLowCardinality(toUInt128(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 536 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 537 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 538 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 539 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 540 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 541 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 542 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 543 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 544 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 545 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 546 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 547 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 548 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 549 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 550 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 551 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 553 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 554 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 555 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 556 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 557 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 558 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 559 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 561 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 562 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 563 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 564 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 565 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 566 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 567 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 568 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 569 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 570 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 571 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 572 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 573 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 574 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 575 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 576 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 577 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 578 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 581 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 582 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 583 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 584 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 585 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 586 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 587 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 588 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 589 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 590 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 591 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 592 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 593 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 594 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 595 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 596 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 597 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 598 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 599 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 600 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 601 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 602 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 603 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 604 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 605 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 606 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 607 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 608 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 609 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 610 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 611 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 612 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 613 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 614 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 615 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 616 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 617 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 618 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(equals(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)), POWER(toNullable(2), toLowCardinality(3), 2), 0), materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(equals(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)), POWER(toNullable(2), toLowCardinality(3), 2), 0), materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(equals(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)), POWER(toNullable(2), toLowCardinality(3), 2), 0), materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 619 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 620 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 621 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 622 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 623 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 624 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 625 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 626 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 627 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 628 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 629 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 630 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 631 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 632 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 633 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 634 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 0 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 0) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 635 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 638 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 639 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 640 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 641 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 642 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 643 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 644 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 645 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 646 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 647 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 648 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 649 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 650 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 651 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 652 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 653 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 654 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 655 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 656 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 657 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 658 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 659 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 660 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 661 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 662 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 663 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 664 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 665 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 666 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 668 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 669 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 670 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 671 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 672 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 673 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 674 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 675 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 676 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 677 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 678 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 679 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 680 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 681 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 682 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 683 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 684 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 685 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 686 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 687 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 688 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 689 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 690 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 691 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 692 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 693 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 694 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 695 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 696 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 698 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 699 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 700 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 701 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 702 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 703 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 704 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 706 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 707 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 708 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 709 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 710 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 711 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 712 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 713 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 714 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 715 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 716 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 717 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 718 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 719 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 720 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 721 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1))))) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1))))) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1))))) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 722 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 723 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 724 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 725 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 726 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 727 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 728 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 729 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 730 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 731 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 732 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 733 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 734 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 735 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 736 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 737 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT -2147483649 ) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT -2147483649) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 738 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 739 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 740 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 741 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 742 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 743 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 744 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 745 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 746 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 747 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 65535 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 65535) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 748 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 749 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 750 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 751 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 752 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 753 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 754 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 755 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 756 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 757 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 758 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 759 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 760 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 761 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 762 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 763 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 764 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 767 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 769 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 770 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 771 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 772 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 773 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 774 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 775 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 776 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 777 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 778 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 779 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 780 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 781 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 782 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 783 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 784 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 785 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 786 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 787 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 788 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 789 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 790 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 791 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 792 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 793 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 794 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 795 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 796 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 797 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 798 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 800 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 801 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 802 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 803 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 804 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 805 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 806 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 807 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 808 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 809 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 810 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 811 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 812 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 813 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 815 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 816 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 817 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 818 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 819 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 820 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 821 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 822 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toNullable(2), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toNullable(2), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toNullable(2), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 823 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 824 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 825 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 826 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 828 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 829 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 831 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 832 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 833 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 834 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 835 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 836 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 837 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 838 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 839 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 840 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 841 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 842 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 843 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 844 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 257 ) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 257) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 845 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 846 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 847 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 848 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 849 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 850 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 851 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 852 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 853 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 854 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 855 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 856 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 857 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 858 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 859 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 860 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 861 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 862 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 863 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 864 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 865 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 866 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 867 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 868 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 869 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 870 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 871 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 872 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 873 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 874 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 875 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 876 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 877 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 878 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 879 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 880 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 881 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 882 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 883 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 884 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 885 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 886 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 887 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 888 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 889 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 890 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 892 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 893 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 894 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 895 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 896 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 897 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 898 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 899 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 901 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 902 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 903 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 904 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 905 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 906 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 907 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 908 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 909 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 910 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 911 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 912 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 913 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 914 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 915 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 916 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 917 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 918 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 919 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 920 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 921 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 922 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 923 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 924 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 925 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 926 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 927 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 928 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 929 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 930 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 931 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 932 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(materialize('second'))), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(materialize('second'))), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(materialize('second'))), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 933 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 934 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 935 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toLowCardinality(toNullable(2)), if(pow(toLowCardinality(toNullable(3)), 2), dateDiff(toLowCardinality(toNullable(materialize('second'))), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toLowCardinality(toNullable(2)), if(pow(toLowCardinality(toNullable(3)), 2), dateDiff(toLowCardinality(toNullable(materialize('second'))), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toLowCardinality(toNullable(2)), if(pow(toLowCardinality(toNullable(3)), 2), dateDiff(toLowCardinality(toNullable(materialize('second'))), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 936 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 937 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 938 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 939 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 940 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 941 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 942 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 943 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 944 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 945 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 946 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 947 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 948 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 949 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 950 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 951 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(toLowCardinality(toNullable(1)))))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(toLowCardinality(toNullable(1)))))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(toUInt256(toLowCardinality(toNullable(1)))))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 952 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 953 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 954 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 955 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 956 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 957 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 958 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 959 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 960 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 961 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 962 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second'. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 963 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 964 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 966 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 967 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 968 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 969 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 970 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 971 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 972 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 973 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 974 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 975 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 976 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 977 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: While processing 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 25. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 28. ./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&) @ 0x000000001773fb78 29. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 30. ./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 @ 0x0000000017db1e81 31. ./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) @ 0x0000000017daa783 Fuzzing step 978 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 979 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 980 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 981 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 982 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 983 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 984 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 985 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 986 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 988 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 989 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 991 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 992 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 994 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 995 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 996 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 997 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 998 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time ASC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 999 out of 1000 WITH ( SELECT toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(2))) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time SELECT 2, if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(2))) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time), event_time_microseconds, event_time FROM system.metric_log ORDER BY event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 2 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 3 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 4 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 5 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 6 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 7 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 8 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 9 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_trace_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 (''01473_trace_log_table_event_start_time_microseconds_test''): '01473_trace_log_table_event_start_time_microseconds_test'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 10 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 11 out of 1000 EXPLAIN QUERY TREE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 EXPLAIN QUERY TREE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 13 out of 1000 EXPLAIN QUERY TREE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 14 out of 1000 EXPLAIN QUERY TREE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 15 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 17 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 19 out of 1000 EXPLAIN SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 EXPLAIN SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 21 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 EXPLAIN QUERY TREE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 25 out of 1000 EXPLAIN SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 EXPLAIN SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 27 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 29 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 30 out of 1000 EXPLAIN PIPELINE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 EXPLAIN PIPELINE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 32 out of 1000 EXPLAIN PIPELINE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 33 out of 1000 EXPLAIN SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 EXPLAIN PIPELINE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 EXPLAIN PIPELINE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 36 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 38 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 39 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 40 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 41 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 43 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 44 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 45 out of 1000 EXPLAIN SYNTAX SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 46 out of 1000 EXPLAIN ESTIMATE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 EXPLAIN ESTIMATE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 48 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_trace_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 (''01473_trace_log_table_event_start_time_microseconds_test''): '01473_trace_log_table_event_start_time_microseconds_test'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 49 out of 1000 EXPLAIN ESTIMATE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 50 out of 1000 EXPLAIN ESTIMATE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 51 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 53 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 54 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 55 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 56 out of 1000 EXPLAIN AST SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 57 out of 1000 EXPLAIN ESTIMATE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 EXPLAIN ESTIMATE SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 59 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test') Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 62 out of 1000 SELECT toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) Got boring AST Fuzzing step 64 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN SELECT toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test') Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 68 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 69 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 70 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 71 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 73 out of 1000 SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test') Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test') Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT POWER(3), materialize(materialize('01473_trace_log_table_event_start_time_microseconds_test')) Error on processing query 'SELECT POWER(3), materialize(materialize('01473_trace_log_table_event_start_time_microseconds_test'))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(3), materialize(materialize('01473_trace_log_table_event_start_time_microseconds_test')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 76 out of 1000 EXPLAIN indexes = true, optimize = true, sorting = true SELECT POWER(2, materialize(toLowCardinality(3))), materialize('01473_trace_log_table_event_start_time_microseconds_test') Error on processing query 'EXPLAIN indexes = true, optimize = true, sorting = true SELECT POWER(2, materialize(toLowCardinality(3))), materialize('01473_trace_log_table_event_start_time_microseconds_test')': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 77 out of 1000 SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 78 out of 1000 SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 79 out of 1000 SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 80 out of 1000 SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 81 out of 1000 SELECT POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 83 out of 1000 SELECT POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 84 out of 1000 SELECT POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 85 out of 1000 SELECT POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 86 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test', 56) Error on processing query 'SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test', 56)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test', 56). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 89 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) PREWHERE POWER(toNullable(3), materialize(2)) Error on processing query 'SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) PREWHERE POWER(toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 90 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 91 out of 1000 EXPLAIN `header, description` = true SELECT POWER(2, toUInt128(3)), materialize(toFixedString(materialize(toNullable(toLowCardinality(3))), '01473_trace_log_table_event_start_time_microseconds_test', 56)) Error on processing query 'EXPLAIN `header, description` = true SELECT POWER(2, toUInt128(3)), materialize(toFixedString(materialize(toNullable(toLowCardinality(3))), '01473_trace_log_table_event_start_time_microseconds_test', 56))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 92 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 93 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 94 out of 1000 SELECT POWER(2, 3), materialize(toLowCardinality(3), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Error on processing query 'SELECT POWER(2, 3), materialize(toLowCardinality(3), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(2, 3), materialize(toLowCardinality(3), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 95 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 96 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(POWER(toNullable(3), materialize(2)), '01473_trace_log_table_event_start_time_microseconds_test', 56)) Error on processing query 'SELECT POWER(2, 3), materialize(toFixedString(POWER(toNullable(3), materialize(2)), '01473_trace_log_table_event_start_time_microseconds_test', 56))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT POWER(2, 3), materialize(toFixedString(POWER(toNullable(3), materialize(2)), '01473_trace_log_table_event_start_time_microseconds_test', 56)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 97 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 98 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 99 out of 1000 SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test', 56) Error on processing query 'SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test', 56)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(2, 3), materialize('01473_trace_log_table_event_start_time_microseconds_test', 56). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 100 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 101 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 102 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56)) Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT POWER(2, 3), materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56) Error on processing query 'SELECT POWER(2, 3), materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(2, 3), materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 104 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 105 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 106 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 107 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)) Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 EXPLAIN indexes = true SELECT POWER(2, 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)) Error on processing query 'EXPLAIN indexes = true SELECT POWER(2, 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 109 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)) Got boring AST Fuzzing step 110 out of 1000 SELECT POWER(toNullable(2), 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))))) Error on processing query 'SELECT POWER(toNullable(2), 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT POWER(toNullable(2), 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 111 out of 1000 SELECT POWER(2, 3), materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)) Got boring AST Fuzzing step 112 out of 1000 SELECT POWER(2, 3), toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56) Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT POWER(2, 3), toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56) Got boring AST Fuzzing step 114 out of 1000 SELECT POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT POWER(toLowCardinality(2), 3) Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT POWER(toNullable(2), toLowCardinality(3), 2), POWER(toLowCardinality(2), 3) Error on processing query 'SELECT POWER(toNullable(2), toLowCardinality(3), 2), POWER(toLowCardinality(2), 3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(toNullable(2), toLowCardinality(3), 2), POWER(toLowCardinality(2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 117 out of 1000 SELECT POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 119 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 120 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 121 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 122 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 123 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 124 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 125 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 126 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 128 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 129 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 130 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 131 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 132 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 133 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 134 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 135 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 136 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 137 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 138 out of 1000 SELECT 3, POWER(3) Error on processing query 'SELECT 3, POWER(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, POWER(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 139 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 140 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 141 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 142 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 143 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 144 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 145 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 146 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 147 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 148 out of 1000 SELECT 3, POWER(toUInt128(2), 3) Error on processing query 'SELECT 3, POWER(toUInt128(2), 3)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, POWER(toUInt128(2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 149 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 150 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 152 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 155 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 157 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 158 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 159 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 161 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 162 out of 1000 SELECT materialize(toNullable(3)), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT toNullable(3), POWER(materialize(2), 3) Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT toNullable(3), POWER(materialize(2), 3) Got boring AST Fuzzing step 165 out of 1000 SELECT toNullable(3), POWER(materialize(2), 3) Got boring AST Fuzzing step 166 out of 1000 SELECT 3, POWER(materialize(2)) Error on processing query 'SELECT 3, POWER(materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, POWER(materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 167 out of 1000 SELECT toNullable(3), POWER(materialize(2), 3) Got boring AST Fuzzing step 168 out of 1000 SELECT 3, POWER(materialize(2), 3) Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT 3, POWER(materialize(2), toNullable(3)) Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT 3, POWER(materialize(2), toNullable(3)) Got boring AST Fuzzing step 171 out of 1000 SELECT 3, POWER(materialize(2), toNullable(3)) Got boring AST Fuzzing step 172 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 174 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 175 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 176 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 178 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 179 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 180 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 181 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 182 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('3'): 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 183 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 185 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 186 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 187 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 188 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('3'): 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 192 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 193 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 194 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 195 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 198 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 199 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 201 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 203 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('3'): 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 204 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 208 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 209 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 211 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('3'): 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 212 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 214 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 216 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 220 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('3'): 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 221 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 222 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 223 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 224 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 225 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('3'): 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 226 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 229 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 230 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 231 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 234 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 235 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 237 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 239 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 240 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 242 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 243 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 244 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 246 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 247 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 248 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 249 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 250 out of 1000 SELECT 3, POWER(2, toNullable(3)) Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT 3, POWER(2, toNullable(3)) Got boring AST Fuzzing step 252 out of 1000 SELECT 3, POWER(materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), toLowCardinality(3)), toNullable(3), toLowCardinality(2)), POWER(2, toNullable(3)) Error on processing query 'SELECT 3, POWER(materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), toLowCardinality(3)), toNullable(3), toLowCardinality(2)), POWER(2, toNullable(3))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 3, POWER(materialize(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), toLowCardinality(3)), toNullable(3), toLowCardinality(2)), POWER(2, toNullable(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 253 out of 1000 SELECT 3, POWER(2, toNullable(3)) Got boring AST Fuzzing step 254 out of 1000 SELECT 3, POWER(2, materialize(toUInt256(57)), toNullable(3)) Error on processing query 'SELECT 3, POWER(2, materialize(toUInt256(57)), toNullable(3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, POWER(2, materialize(toUInt256(57)), toNullable(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 255 out of 1000 SELECT 3, POWER(2, toNullable(3)) Got boring AST Fuzzing step 256 out of 1000 SELECT 3, POWER(2, toNullable(3)) Got boring AST Fuzzing step 257 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 259 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 260 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 261 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 262 out of 1000 SELECT 3, POWER(toUInt128(2), 3) Error on processing query 'SELECT 3, POWER(toUInt128(2), 3)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, POWER(toUInt128(2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 263 out of 1000 EXPLAIN `header, description` = true, actions = true, json = true SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN `header, description` = true, actions = true, json = true SELECT 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 264 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 265 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 266 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 267 out of 1000 SELECT materialize(3), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT materialize(3), POWER(2, 3) Got boring AST Fuzzing step 269 out of 1000 SELECT materialize(3), POWER(2, 3) Got boring AST Fuzzing step 270 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 272 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 273 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 274 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 275 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 276 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 277 out of 1000 SELECT 3, POWER(toUInt256(2), 3) GROUP BY POWER(3, materialize(toUInt128(2))) Error on processing query 'SELECT 3, POWER(toUInt256(2), 3) GROUP BY POWER(3, materialize(toUInt128(2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 3, POWER(toUInt256(2), 3) GROUP BY POWER(3, materialize(toUInt128(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 278 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 279 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 280 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 281 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 282 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 283 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 284 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 285 out of 1000 SELECT 3, POWER(2) Error on processing query 'SELECT 3, POWER(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, POWER(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 286 out of 1000 SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 287 out of 1000 SELECT toLowCardinality(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT toLowCardinality(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(2, 3) Got boring AST Fuzzing step 289 out of 1000 SELECT toLowCardinality(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(2, 3) Got boring AST Fuzzing step 290 out of 1000 SELECT toLowCardinality(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(toNullable(3), 2, 3) Error on processing query 'SELECT toLowCardinality(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(toNullable(3), 2, 3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(toNullable(3), 2, 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 291 out of 1000 SELECT toLowCardinality(3), toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) GROUP BY 2, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56) Error on processing query 'SELECT toLowCardinality(3), POWER(2, 3) GROUP BY 2, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(3), POWER(2, 3) GROUP BY 2, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 294 out of 1000 SELECT toLowCardinality(toLowCardinality(toNullable(3))), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 297 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 298 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 299 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 300 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 301 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 302 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 303 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 304 out of 1000 EXPLAIN PIPELINE compact = true SELECT toLowCardinality(3), POWER(2, 3) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toLowCardinality(3), POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 SELECT toLowCardinality(toNullable(3)), POWER(2, 3) Got boring AST Fuzzing step 306 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Got boring AST Fuzzing step 308 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Got boring AST Fuzzing step 309 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Got boring AST Fuzzing step 310 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Got boring AST Fuzzing step 311 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Got boring AST Fuzzing step 312 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Got boring AST Fuzzing step 313 out of 1000 SELECT toLowCardinality(3), POWER(2, 3) Got boring AST Fuzzing step 314 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 317 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 318 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 319 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 320 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 322 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 323 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 EXPLAIN AST SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 326 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 329 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 330 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 331 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 EXPLAIN SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 333 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 336 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 337 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 338 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 339 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(2, 3) Got boring AST Fuzzing step 341 out of 1000 SELECT 3, POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 344 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 345 out of 1000 SELECT POWER(2, 3) PREWHERE if(dateDiff('second', toDateTime(POWER(3, toLowCardinality(2)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)) Error on processing query 'SELECT POWER(2, 3) PREWHERE if(dateDiff('second', toDateTime(POWER(3, toLowCardinality(2)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(2, 3) PREWHERE if(dateDiff('second', toDateTime(POWER(3, toLowCardinality(2)), time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 346 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 347 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 348 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 349 out of 1000 SELECT POWER(2) Error on processing query 'SELECT POWER(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 350 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 351 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 352 out of 1000 SELECT POWER(2) Error on processing query 'SELECT POWER(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 353 out of 1000 EXPLAIN PIPELINE SELECT POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(2, 3) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 355 out of 1000 EXPLAIN AST SELECT POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 358 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 359 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 360 out of 1000 SELECT POWER(3) Error on processing query 'SELECT POWER(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 361 out of 1000 SELECT tupleElement(time, toLowCardinality(1)), POWER(2, 3) Error on processing query 'SELECT tupleElement(time, toLowCardinality(1)), POWER(2, 3)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT tupleElement(time, toLowCardinality(1)), POWER(2, 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 362 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 363 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 364 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 365 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 366 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 367 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 368 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 369 out of 1000 SELECT POWER(2, 3) PREWHERE POWER(2, materialize(3)) Error on processing query 'SELECT POWER(2, 3) PREWHERE POWER(2, materialize(3))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 370 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 371 out of 1000 SELECT POWER(2, 3) Got boring AST Fuzzing step 372 out of 1000 SELECT POWER(2, toLowCardinality(3)) Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 SELECT POWER(2, 3) GROUP BY POWER(toLowCardinality(toNullable(3)), 2), materialize(3), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)), 2))) = 0, materialize('ok'), toString(time)), toUInt256(toUInt128(3)), toLowCardinality(toNullable(toUInt256(2))) Error on processing query 'SELECT POWER(2, 3) GROUP BY POWER(toLowCardinality(toNullable(3)), 2), materialize(3), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)), 2))) = 0, materialize('ok'), toString(time)), toUInt256(toUInt128(3)), toLowCardinality(toNullable(toUInt256(2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(2, 3) GROUP BY POWER(toLowCardinality(toNullable(3)), 2), materialize(3), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)), 2))) = 0, materialize('ok'), toString(time)), toUInt256(toUInt128(3)), toLowCardinality(toNullable(toUInt256(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 374 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 376 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 377 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 378 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 379 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)), POWER(2, toLowCardinality(3)) Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 381 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 382 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 384 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(POWER(materialize(2), toNullable(3)), 3)) Error on processing query 'SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(POWER(materialize(2), toNullable(3)), 3))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(POWER(materialize(2), toNullable(3)), 3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 385 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 386 out of 1000 SELECT POWER(POWER(materialize(2), toNullable(3)), POW(3, 2), 2), POWER(2, toLowCardinality(toNullable(materialize(toNullable(3))), 3)) Error on processing query 'SELECT POWER(POWER(materialize(2), toNullable(3)), POW(3, 2), 2), POWER(2, toLowCardinality(toNullable(materialize(toNullable(3))), 3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POWER(materialize(2), toNullable(3)), POW(3, 2), 2), POWER(2, toLowCardinality(toNullable(materialize(toNullable(3))), 3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 387 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT POWER(POW(3), 2), POWER(2, 3) Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT POWER(POW(3), 2), POWER(2, 3)': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 388 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 389 out of 1000 SELECT POWER(POW(2), 2), POWER(toLowCardinality(2), 3) Error on processing query 'SELECT POWER(POW(2), 2), POWER(toLowCardinality(2), 3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(POW(2), 2), POWER(toLowCardinality(2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 390 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 391 out of 1000 SELECT POWER(POW(3, 2), pow(3, 2), 2), POWER(2, toLowCardinality(3)) Error on processing query 'SELECT POWER(POW(3, 2), pow(3, 2), 2), POWER(2, toLowCardinality(3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(3, 2), pow(3, 2), 2), POWER(2, toLowCardinality(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 392 out of 1000 SELECT POWER(POW(3, POW(3, toNullable(2)), 2), POWER(toUInt256(2), 3, 2), 2), POWER(2, toLowCardinality(3)) Error on processing query 'SELECT POWER(POW(3, POW(3, toNullable(2)), 2), POWER(toUInt256(2), 3, 2), 2), POWER(2, toLowCardinality(3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(3, POW(3, toNullable(2)), 2), POWER(toUInt256(2), 3, 2), 2), POWER(2, toLowCardinality(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 393 out of 1000 SELECT POWER(POW(toUInt128(3), 2), 2), POWER(2, toLowCardinality(3)) Error on processing query 'SELECT POWER(POW(toUInt128(3), 2), 2), POWER(2, toLowCardinality(3))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POWER(POW(toUInt128(3), 2), 2), POWER(2, toLowCardinality(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 394 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 395 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 396 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 397 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, toLowCardinality(3)) Got boring AST Fuzzing step 398 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 400 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 401 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 402 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 403 out of 1000 SELECT POWER(POW(3, toNullable(2)), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 SELECT POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(2)), 2), POWER(2, 3) Error on processing query 'SELECT POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(2)), 2), POWER(2, 3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(2)), 2), POWER(2, 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 405 out of 1000 SELECT POWER(POW(toNullable(3), toNullable(2)), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), 2), POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 2), 2), POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 409 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(toUInt128(2), 3) Error on processing query 'SELECT POWER(POW(3, 2), 2), POWER(toUInt128(2), 3)': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POWER(POW(3, 2), 2), POWER(toUInt128(2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 410 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 411 out of 1000 EXPLAIN ESTIMATE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 EXPLAIN ESTIMATE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 413 out of 1000 EXPLAIN ESTIMATE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 414 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 416 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 417 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 418 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2), POWER(2, 3) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2), POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 2), 2), POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 419 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 421 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 422 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 424 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 425 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 426 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 427 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 428 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 429 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 433 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 434 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 435 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 439 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 443 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 444 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 445 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 449 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 450 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 453 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2), POWER(2, 3) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2), POWER(2, 3)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 2), 2), POWER(2, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 455 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 457 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 458 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 460 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 462 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 463 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 466 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 467 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 468 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 469 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 470 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 471 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 472 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 473 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 474 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 475 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 476 out of 1000 SELECT POWER(POW(3, 2), materialize(2)), POWER(2, 3) Got boring AST Fuzzing step 477 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT POWER(POW(3, 2), POW(3, toNullable(2)), 2), POW(3, materialize(toNullable(2))), POWER(toUInt128(toLowCardinality(2)), 2, 3) Error on processing query 'SELECT POWER(POW(3, 2), POW(3, toNullable(2)), 2), POW(3, materialize(toNullable(2))), POWER(toUInt128(toLowCardinality(2)), 2, 3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(3, 2), POW(3, toNullable(2)), 2), POW(3, materialize(toNullable(2))), POWER(toUInt128(toLowCardinality(2)), 2, 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 479 out of 1000 SELECT POWER(POW(3, 2), 2), POWER(2, 3) Got boring AST Fuzzing step 480 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 482 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 483 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 484 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 485 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 486 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 487 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 488 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) Got boring AST Fuzzing step 489 out of 1000 SELECT POWER(POW(toNullable(3), 2), 2) PREWHERE POWER(POW(3, toLowCardinality(toNullable(2)))) Error on processing query 'SELECT POWER(POW(toNullable(3), 2), 2) PREWHERE POWER(POW(3, toLowCardinality(toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(POW(toNullable(3), 2), 2) PREWHERE POWER(POW(3, toLowCardinality(toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 490 out of 1000 SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 492 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 493 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 494 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 495 out of 1000 SELECT POWER(2) Error on processing query 'SELECT POWER(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 496 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 497 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 498 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 499 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 501 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 502 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 503 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 504 out of 1000 SELECT POWER(POW(power(3, 2), 3, 2), toLowCardinality(2)) Error on processing query 'SELECT POWER(POW(power(3, 2), 3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(power(3, 2), 3, 2), toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 505 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 506 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 508 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 509 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 510 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 511 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 512 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 513 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 514 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 515 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 516 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 517 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 518 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 519 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 520 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 521 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 522 out of 1000 EXPLAIN ESTIMATE SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 525 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 526 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 527 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 528 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 531 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 532 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 533 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 534 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 535 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 536 out of 1000 EXPLAIN ESTIMATE SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 538 out of 1000 EXPLAIN ESTIMATE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 539 out of 1000 EXPLAIN ESTIMATE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 540 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 543 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 544 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 545 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 546 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 547 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 548 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 549 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 553 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 554 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 555 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 556 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 557 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 558 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 559 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 561 out of 1000 SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 563 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 564 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 565 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 566 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 567 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 568 out of 1000 SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), POWER(POW(3, 2), 2) Error on processing query 'SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), POWER(POW(3, 2), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 569 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 570 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 573 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 576 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 577 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 578 out of 1000 SELECT POWER(POW(3, 2), 2) WHERE toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57) Error on processing query 'SELECT POWER(POW(3, 2), 2) WHERE toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(57). In query SELECT POWER(POW(3, 2), 2) WHERE toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 579 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 581 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 584 out of 1000 EXPLAIN SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 585 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 587 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 589 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 590 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 591 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 593 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 594 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(POW(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 599 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 600 out of 1000 SELECT POWER(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(2, 57, POWER(POW(3, 2)), time)), POW(3, 2), 2) Error on processing query 'SELECT POWER(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(2, 57, POWER(POW(3, 2)), time)), POW(3, 2), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(2, 57, POWER(POW(3, 2)), time)), POW(3, 2), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 601 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 603 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 605 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 606 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 607 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 608 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 610 out of 1000 EXPLAIN AST SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 611 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 613 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 614 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 615 out of 1000 EXPLAIN SYNTAX SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 618 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT POWER(POW(3, 2), toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 620 out of 1000 EXPLAIN actions = true SELECT POWER(POW(3, 2), toLowCardinality(toNullable(toUInt128(3)), 2)) Error on processing query 'EXPLAIN actions = true SELECT POWER(POW(3, 2), toLowCardinality(toNullable(toUInt128(3)), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 621 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)) Error on processing query 'SELECT POWER(POW(3, 2), toLowCardinality(2)) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(POW(3, 2), toLowCardinality(2)) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 622 out of 1000 SELECT POWER(POW(3, toUInt256(2)), toLowCardinality(2)) PREWHERE toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57) Error on processing query 'SELECT POWER(POW(3, toUInt256(2)), toLowCardinality(2)) PREWHERE toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(POW(3, toUInt256(2)), toLowCardinality(2)) PREWHERE toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 623 out of 1000 EXPLAIN PIPELINE compact = true SELECT POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT POWER(POW(3, 2), toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 624 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 625 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 626 out of 1000 SELECT POWER(POW(3, 2), toLowCardinality(2)) Got boring AST Fuzzing step 627 out of 1000 SELECT POWER(POW(3, 2), 2) Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 629 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 630 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 631 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 632 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 633 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 634 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 635 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 636 out of 1000 SELECT POWER(POW(3, 2)) Error on processing query 'SELECT POWER(POW(3, 2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(POW(3, 2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 637 out of 1000 SELECT POWER(POW(3, 2), 2) Got boring AST Fuzzing step 638 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY toNullable(toLowCardinality(materialize(3))), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY toNullable(toLowCardinality(3)), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 EXPLAIN PIPELINE SELECT POWER(POW(3, 2)) GROUP BY toNullable(toLowCardinality(3)), pow(3, 2) Error on processing query 'EXPLAIN PIPELINE SELECT POWER(POW(3, 2)) GROUP BY toNullable(toLowCardinality(3)), pow(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(POW(3, 2)) GROUP BY toNullable(toLowCardinality(3)), pow(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 641 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(toLowCardinality(3)), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(3), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(3), pow(3, 2) Got boring AST Fuzzing step 644 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(toLowCardinality(toNullable(3))), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(toNullable(3)), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(toNullable(3)), pow(toUInt256(3), 2) Error on processing query 'SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(toNullable(3)), pow(toUInt256(3), 2)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(POW(3, materialize(2)), 2) GROUP BY toNullable(toNullable(3)), pow(toUInt256(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 647 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY toNullable(toNullable(3)), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(3))), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT POWER(POW(3, 2), 2) WHERE toUInt128(toLowCardinality(2)) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT POWER(POW(3, 2), 2) WHERE toUInt128(toLowCardinality(2)) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 650 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(3))), (pow(3, 2))) Got boring AST Fuzzing step 651 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(3))), (pow(3, 2))) Got boring AST Fuzzing step 652 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(3))), (pow(3, 2))) Got boring AST Fuzzing step 653 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(toLowCardinality(3)))), (pow(materialize(toUInt128(3)), 2))) Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(toNullable(toLowCardinality(3)))), (pow(materialize(toUInt128(3)), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(toNullable(toLowCardinality(3)))), (pow(materialize(toUInt128(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 654 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(3))), (pow(3, 2))) Got boring AST Fuzzing step 655 out of 1000 SELECT POWER(POW(3, 2), 2) WITH TOTALS Error on processing query 'SELECT POWER(POW(3, 2), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 656 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(toUInt256(3)))), (pow(3, 2))) WITH CUBE Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(toNullable(toUInt256(3)))), (pow(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 657 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(toNullable(3))), (pow(3, toLowCardinality(toUInt256(2))))) WITH CUBE Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(toNullable(3))), (pow(3, toLowCardinality(toUInt256(2))))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2) PREWHERE POW(3) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'EXPLAIN QUERY TREE SELECT POWER(POW(3, 2), 2) PREWHERE POW(3) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(POW(3, 2), 2) PREWHERE POW(3) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 659 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 SELECT POWER(POW(3, 2), 2) WITH TOTALS Error on processing query 'SELECT POWER(POW(3, 2), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 661 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 662 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 663 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 664 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 665 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 666 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 667 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 668 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(power(3, materialize(toLowCardinality(2))), 3, 2))) Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(power(3, materialize(toLowCardinality(2))), 3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(power(3, materialize(toLowCardinality(2))), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 669 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 670 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 671 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 672 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 673 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 674 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 675 out of 1000 SELECT POWER(2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT POWER(2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 676 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 677 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 678 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 679 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 680 out of 1000 SELECT POWER(POW(3, 2), 2) WITH TOTALS Error on processing query 'SELECT POWER(POW(3, 2), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 681 out of 1000 SELECT POWER(POW(3, 2), materialize(toUInt128(2))) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT POWER(POW(3, 2), materialize(toUInt128(2))) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POWER(POW(3, 2), materialize(toUInt128(2))) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 682 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 SELECT POWER(POW(3, toNullable(2)), 2) GROUP BY GROUPING SETS ( (toNullable(toString(toUInt128(2), 57, POWER(toNullable(2), 3, 2), time), 3)), (pow(3, 2))) Error on processing query 'SELECT POWER(POW(3, toNullable(2)), 2) GROUP BY GROUPING SETS ((toNullable(toString(toUInt128(2), 57, POWER(toNullable(2), 3, 2), time), 3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(3, toNullable(2)), 2) GROUP BY GROUPING SETS ((toNullable(toString(toUInt128(2), 57, POWER(toNullable(2), 3, 2), time), 3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 684 out of 1000 SELECT POWER(POW(3, 2), 2) WITH TOTALS Error on processing query 'SELECT POWER(POW(3, 2), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 685 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 686 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 687 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 688 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 689 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 690 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3))) Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 691 out of 1000 SELECT POWER(POW(3), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT POWER(POW(3), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(POW(3), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 692 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 693 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 694 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 695 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(materialize(3), 2))) Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(3), 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 696 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 697 out of 1000 SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, toNullable(toUInt256(2))))) Error on processing query 'SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, toNullable(toUInt256(2)))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, toNullable(toUInt256(2))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 698 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 700 out of 1000 SELECT toLowCardinality(toNullable(2)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT toLowCardinality(toNullable(2)), POWER(POW(materialize(toLowCardinality(3)), materialize(2)), pow(3, toNullable(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT toLowCardinality(toNullable(2)), POWER(POW(materialize(toLowCardinality(3)), materialize(2)), pow(3, toNullable(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(toNullable(2)), POWER(POW(materialize(toLowCardinality(3)), materialize(2)), pow(3, toNullable(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 702 out of 1000 SELECT toLowCardinality(toNullable(2)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 703 out of 1000 SELECT toNullable(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(toLowCardinality(toUInt256(3)), 2))) Error on processing query 'SELECT toNullable(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(toLowCardinality(toUInt256(3)), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(toLowCardinality(toUInt256(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 704 out of 1000 SELECT toLowCardinality(toNullable(2)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 705 out of 1000 SELECT toLowCardinality(toNullable(2)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 706 out of 1000 SELECT toLowCardinality(toNullable(2)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 707 out of 1000 SELECT toLowCardinality(2), POWER(POW(toUInt128(3), materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT toLowCardinality(2), POWER(POW(toUInt128(3), materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality(2), POWER(POW(toUInt128(3), materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 708 out of 1000 SELECT toLowCardinality(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT toLowCardinality(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, toLowCardinality(toUInt128(2))))) Error on processing query 'SELECT toLowCardinality(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, toLowCardinality(toUInt128(2)))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, toLowCardinality(toUInt128(2))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 710 out of 1000 SELECT toLowCardinality(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 711 out of 1000 SELECT toLowCardinality(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 712 out of 1000 SELECT toLowCardinality(2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Got boring AST Fuzzing step 713 out of 1000 SELECT toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 2), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 714 out of 1000 SELECT toLowCardinality(2), POWER(POW(toNullable(3), materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT 2, POWER(POW(toNullable(materialize(3)), materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT 2, POWER(POW(toNullable(materialize(3)), materialize(2)), POWER(POW(toNullable(3), materialize(2)), 2), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Error on processing query 'SELECT 2, POWER(POW(toNullable(materialize(3)), materialize(2)), POWER(POW(toNullable(3), materialize(2)), 2), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, POWER(POW(toNullable(materialize(3)), materialize(2)), POWER(POW(toNullable(3), materialize(2)), 2), 2) GROUP BY GROUPING SETS ((toNullable(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 717 out of 1000 SELECT 2, toLowCardinality(toLowCardinality(3)), POWER(POW(toNullable(materialize(3)), materialize(2)), 2) GROUP BY GROUPING SETS ( (toNullable(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT 2, toLowCardinality(toLowCardinality(3)), POWER(POW(materialize(3), materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT 2, toLowCardinality(3), POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 2, toLowCardinality(3), POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 2, toLowCardinality(3), POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 720 out of 1000 SELECT 2, toLowCardinality(toLowCardinality(3)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT 2, toLowCardinality(3), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT 2, toLowCardinality(3), POWER(POW(3, 2), toUInt128(2)) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, toLowCardinality(3), POWER(POW(3, 2), toUInt128(2)) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, toLowCardinality(3), POWER(POW(3, 2), toUInt128(2)) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 723 out of 1000 SELECT 2, toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(toUInt128(57), POWER(materialize('ok'), 3, 2), time)), 3), POWER(POW(3, 2), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(toUInt128(57), POWER(materialize('ok'), 3, 2), time)), 3), POWER(POW(3, 2), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(toUInt128(57), POWER(materialize('ok'), 3, 2), time)), 3), POWER(POW(3, 2), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 724 out of 1000 EXPLAIN AST graph = true SELECT 2, toLowCardinality(toNullable(2)), toLowCardinality(3), POWER(POW(materialize(3), 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) WITH CUBE Error on processing query 'EXPLAIN AST graph = true SELECT 2, toLowCardinality(toNullable(2)), toLowCardinality(3), POWER(POW(materialize(3), 2), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2))) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 725 out of 1000 SELECT 2, toLowCardinality(3), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, toLowCardinality(materialize(toLowCardinality(toNullable('ok')))), toString(toUInt128(2), 57, POWER(toNullable(sleep(2), 2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)), materialize(toLowCardinality(3))), 2))) Error on processing query 'SELECT 2, toLowCardinality(3), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, toLowCardinality(materialize(toLowCardinality(toNullable('ok')))), toString(toUInt128(2), 57, POWER(toNullable(sleep(2), 2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)), materialize(toLowCardinality(3))), 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, toLowCardinality(3), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, toLowCardinality(materialize(toLowCardinality(toNullable('ok')))), toString(toUInt128(2), 57, POWER(toNullable(sleep(2), 2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)), materialize(toLowCardinality(3))), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 726 out of 1000 SELECT 2, toLowCardinality(materialize(3)), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT 2, toLowCardinality(materialize(3)), toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT 2, toLowCardinality(materialize(3)), toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toUInt256(toNullable(2)), toLowCardinality(3), 2))) Error on processing query 'SELECT 2, toLowCardinality(materialize(3)), toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(toUInt256(toNullable(2)), toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, toLowCardinality(materialize(3)), toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(toUInt256(toNullable(2)), toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 729 out of 1000 SELECT 2, toLowCardinality(materialize(3)), 57, POWER(POW(3), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, toLowCardinality(materialize(3)), 57, POWER(POW(3), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, toLowCardinality(materialize(3)), 57, POWER(POW(3), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 730 out of 1000 SELECT 2, toLowCardinality(3), toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT 2, 3, toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT 2, 3, toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Got boring AST Fuzzing step 733 out of 1000 SELECT 2, 3, toLowCardinality(57), POWER(POW(3, 2)) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, 3, toLowCardinality(57), POWER(POW(3, 2)) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, 3, toLowCardinality(57), POWER(POW(3, 2)) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 734 out of 1000 SELECT toNullable(toUInt256(2)), 3, toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(materialize(toUInt256(3))), 2))) Error on processing query 'SELECT toNullable(toUInt256(2)), 3, toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(materialize(toUInt256(3))), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(toUInt256(2)), 3, toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(materialize(toUInt256(3))), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 735 out of 1000 SELECT 2, 3, toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Got boring AST Fuzzing step 736 out of 1000 SELECT 2, 3, toLowCardinality(57), POWER(POW(2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Error on processing query 'SELECT 2, 3, toLowCardinality(57), POWER(POW(2), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, 3, toLowCardinality(57), POWER(POW(2), 2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 737 out of 1000 SELECT 2, 3, toLowCardinality(57), POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Got boring AST Fuzzing step 738 out of 1000 SELECT 2, materialize(toLowCardinality(toUInt256(3))), toLowCardinality(57), POWER(POW(3, 2), toNullable(2)) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT 2, materialize(toLowCardinality(toUInt256(3))), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT 2, materialize(toLowCardinality(toUInt256(3))), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 744 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT 2, materialize(3), 57, POWER(POW(3, 2), 2) WITH TOTALS Error on processing query 'SELECT 2, materialize(3), 57, POWER(POW(3, 2), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 746 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(toString(2, 57, POWER(2, 3), time), POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 2, materialize(toLowCardinality(3)), 57, POWER(toString(2, 57, POWER(2, 3), time), POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, materialize(toLowCardinality(3)), 57, POWER(toString(2, 57, POWER(2, 3), time), POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 747 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 748 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 749 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 750 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 751 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) WITH TOTALS Error on processing query 'SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 752 out of 1000 SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(toUInt128(3), 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(toUInt128(3), 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, materialize(toLowCardinality(3)), 57, POWER(POW(toUInt128(3), 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 753 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 755 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(materialize('01473_trace_log_table_event_start_time_microseconds_test'), 3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 2, toLowCardinality(3), 57, POWER(POW(materialize('01473_trace_log_table_event_start_time_microseconds_test'), 3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, toLowCardinality(3), 57, POWER(POW(materialize('01473_trace_log_table_event_start_time_microseconds_test'), 3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 756 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 757 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 758 out of 1000 SELECT 2, toLowCardinality(POW(2), 3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 2, toLowCardinality(POW(2), 3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, toLowCardinality(POW(2), 3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 759 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 760 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 761 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(POW(toLowCardinality(toLowCardinality(3)), 2), 3, 2), 2) WITH TOTALS Error on processing query 'SELECT 2, toLowCardinality(3), 57, POWER(POW(POW(toLowCardinality(toLowCardinality(3)), 2), 3, 2), 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, toLowCardinality(3), 57, POWER(POW(POW(toLowCardinality(toLowCardinality(3)), 2), 3, 2), 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 762 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 763 out of 1000 SELECT 2, toLowCardinality(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3), 57, POWER(POW(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(57), time)), 3, 2), 2) GROUP BY GROUPING SETS ( (toUInt128(3)), (pow(3, 2))) Error on processing query 'SELECT 2, toLowCardinality(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3), 57, POWER(POW(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(57), time)), 3, 2), 2) GROUP BY GROUPING SETS ((toUInt128(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, toLowCardinality(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3), 57, POWER(POW(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(57), time)), 3, 2), 2) GROUP BY GROUPING SETS ((toUInt128(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 764 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 766 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 767 out of 1000 SELECT 2, 3, 57, POWER(POW(3, materialize(toLowCardinality(2))), 2) GROUP BY GROUPING SETS ( (3), (pow(2))) Error on processing query 'SELECT 2, 3, 57, POWER(POW(3, materialize(toLowCardinality(2))), 2) GROUP BY GROUPING SETS ((3), (pow(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 2, 3, 57, POWER(POW(3, materialize(toLowCardinality(2))), 2) GROUP BY GROUPING SETS ((3), (pow(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 768 out of 1000 SELECT 2, toLowCardinality(3), toNullable(toUInt256(57)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 SELECT 2, 3, toNullable(toUInt256(57)), POWER(POW(3, POWER(2, materialize(3)), materialize(2)), 2) WITH TOTALS Error on processing query 'SELECT 2, 3, toNullable(toUInt256(57)), POWER(POW(3, POWER(2, materialize(3)), materialize(2)), 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 2, 3, toNullable(toUInt256(57)), POWER(POW(3, POWER(2, materialize(3)), materialize(2)), 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 770 out of 1000 SELECT 2, toLowCardinality(3), toNullable(toUInt256(57)), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 771 out of 1000 SELECT 2, toLowCardinality(3), toNullable(toUInt256(57)), POWER(POW(3, materialize(toLowCardinality(toUInt128(2)))), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 2, toLowCardinality(3), toNullable(toUInt256(57)), POWER(POW(3, materialize(toLowCardinality(toUInt128(2)))), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, toLowCardinality(3), toNullable(toUInt256(57)), POWER(POW(3, materialize(toLowCardinality(toUInt128(2)))), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 772 out of 1000 SELECT 2, 3, toUInt256(57), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toUInt128(3)), 2))) Error on processing query 'SELECT 2, 3, toUInt256(57), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(toUInt128(3)), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 2, 3, toUInt256(57), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(toUInt128(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 773 out of 1000 SELECT 2, toLowCardinality(3), toUInt256(57), POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 776 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 777 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 778 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 779 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) WITH TOTALS Error on processing query 'SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 780 out of 1000 SELECT 2, toLowCardinality(3), 57, POWER(POW(3, materialize(2)), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 781 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 785 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 787 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 788 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 789 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 790 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 791 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 793 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('2'): 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 794 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 795 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 796 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 798 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 801 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 EXPLAIN AST SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 805 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('2'): 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 807 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 808 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('2'): 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 809 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 815 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 816 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 817 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 818 out of 1000 EXPLAIN ESTIMATE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 819 out of 1000 EXPLAIN PIPELINE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 822 out of 1000 EXPLAIN SYNTAX SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 EXPLAIN SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 EXPLAIN QUERY TREE SELECT 2, toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT materialize(2), toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT materialize(2), toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toUInt128(2)))) Error on processing query 'SELECT materialize(2), toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toUInt128(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT materialize(2), toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toUInt128(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 827 out of 1000 SELECT materialize(2), toLowCardinality(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 828 out of 1000 SELECT materialize(toUInt128(2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT materialize(toUInt128(2)), 3, dateDiff(toNullable(materialize('second')), toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT materialize(toUInt128(2)), 3, dateDiff(toNullable(materialize('second')), toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(toUInt128(2)), 3, dateDiff(toNullable(materialize('second')), toDateTime(time.1), toDateTime(time.2)), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 830 out of 1000 SELECT materialize(toUInt128(2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 831 out of 1000 SELECT materialize(toUInt128(2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 832 out of 1000 SELECT materialize(toUInt128(2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 833 out of 1000 SELECT materialize(toUInt128(2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 834 out of 1000 SELECT materialize(toUInt128(POW(materialize(3), 2), 2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT materialize(toUInt128(POW(materialize(3), 2), 2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 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 materialize(toUInt128(POW(materialize(3), 2), 2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 835 out of 1000 SELECT materialize(toUInt128(2)), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Got boring AST Fuzzing step 836 out of 1000 SELECT materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toUInt128(2)))) Error on processing query 'SELECT materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toUInt128(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toUInt128(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 838 out of 1000 SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT POW(3, toLowCardinality(2)), materialize(2), 3, 57, POWER(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, toLowCardinality(2)), materialize(2), 3, 57, POWER(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, toLowCardinality(2)), materialize(2), 3, 57, POWER(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 841 out of 1000 SELECT POW(3, 2), materialize(2), toUInt128(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), 2)))) Error on processing query 'SELECT POW(3, 2), materialize(2), toUInt128(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), 2))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(3, 2), materialize(2), toUInt128(3), 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), 2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 842 out of 1000 SELECT POW(3, 2), 2, 3, 57, POWER(POW(2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 2, 3, 57, POWER(POW(2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 2, 3, 57, POWER(POW(2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 843 out of 1000 SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 844 out of 1000 SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 845 out of 1000 SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) WITH TOTALS Error on processing query 'SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 846 out of 1000 SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 847 out of 1000 SELECT POW(3, 2), materialize(2), 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(toUInt128(3)), 2))) Error on processing query 'EXPLAIN PIPELINE SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(toUInt128(3)), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(toUInt128(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 850 out of 1000 SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 851 out of 1000 SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 852 out of 1000 SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2)) PREWHERE tupleElement(time, 1) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2)) PREWHERE tupleElement(time, 1) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 2, 3, 57, POWER(POW(3, 2)) PREWHERE time.1 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 853 out of 1000 SELECT POW(3, 2), 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT POW(3, 2), 3, 57, POWER(POW(3, toUInt128(2)), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 3, 57, POWER(POW(3, toUInt128(2)), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POW(3, 2), 3, 57, POWER(POW(3, toUInt128(2)), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 855 out of 1000 SELECT POW(toNullable(3), 2), 3, 57, POWER(POW(3, 2), 2) PREWHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(toNullable(3), 2), 3, 57, POWER(POW(3, 2), 2) PREWHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 856 out of 1000 SELECT POW(3, 2), 3, 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 857 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(toUInt128(3))), toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(toUInt128(3))), toNullable(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(toUInt128(3))), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 859 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(2)))) Got boring AST Fuzzing step 860 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(2)))) Got boring AST Fuzzing step 861 out of 1000 SELECT POW(3, 2), 57, POWER(toNullable(2)) PREWHERE toLowCardinality(toNullable(toUInt128(3))) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(materialize(toNullable(3)), toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(toNullable(2)) PREWHERE toLowCardinality(toNullable(toUInt128(3))) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(materialize(toNullable(3)), toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 57, POWER(toNullable(2)) PREWHERE toLowCardinality(toNullable(toUInt128(3))) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(materialize(toNullable(3)), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 862 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(2)))) Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(3)), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 863 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), 2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(materialize(toNullable(toUInt128(2))))))) Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(3)), toNullable(materialize(toNullable(toUInt128(2)))))))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(3)), toNullable(materialize(toNullable(toUInt128(2))))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 864 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(2)))) Got boring AST Fuzzing step 865 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) WITH TOTALS Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 866 out of 1000 SELECT POW(3, 2), 57, POWER(POW(2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(3)), toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 57, POWER(POW(2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(3)), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 867 out of 1000 SELECT POW(3, 2), 57, POWER(toNullable(2)) WHERE toLowCardinality(materialize(toLowCardinality(toUInt256(toUInt128(3)))), 2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toNullable(3)), toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(toNullable(2)) WHERE toLowCardinality(materialize(toLowCardinality(toUInt256(toUInt128(3)))), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(3)), toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 57, POWER(toNullable(2)) WHERE toLowCardinality(materialize(toLowCardinality(toUInt256(toUInt128(3)))), 2) GROUP BY GROUPING SETS ((3), (pow(materialize(toNullable(3)), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 868 out of 1000 SELECT POW(3, materialize(2)), 57, POWER(toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(toNullable(3), toNullable(2)))) Error on processing query 'SELECT POW(3, materialize(2)), 57, POWER(toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(toNullable(3), toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, materialize(2)), 57, POWER(toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(toNullable(3), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 869 out of 1000 SELECT POW(3, toNullable(2)), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(materialize(3), toNullable(2)))) Error on processing query 'SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(materialize(3), toNullable(2))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(materialize(3), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 872 out of 1000 SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(3)), (pow(materialize(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(3)), (pow(materialize(3), toNullable(2)))) Error on processing query 'SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(3)), (pow(materialize(3), toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(3)), (pow(materialize(3), toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 874 out of 1000 SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(power(2), 3), 2))) Error on processing query 'SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(power(2), 3), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, toNullable(2)), toLowCardinality(toUInt128(57)), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(power(2), 3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 875 out of 1000 EXPLAIN PIPELINE compact = true SELECT POW(3, toNullable(toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), 2)), toLowCardinality(57), POWER(POW(3, 2), 2) WHERE toLowCardinality(toLowCardinality(toNullable(2))) GROUP BY GROUPING SETS ( (materialize(3)), (pow(3, toNullable(materialize(2))))) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT POW(3, toNullable(toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), 2)), toLowCardinality(57), POWER(POW(3, 2), 2) WHERE toLowCardinality(toLowCardinality(toNullable(2))) GROUP BY GROUPING SETS ((materialize(3)), (pow(3, toNullable(materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 876 out of 1000 SELECT POW(3, toNullable(2)), toLowCardinality(57), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(3)), (pow(materialize(3), toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT POW(3, toNullable(2)), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(3)), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT POW(3, toNullable(2)), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT POW(3, 2), 57, toFixedString(57), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, toFixedString(57), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 57, toFixedString(57), POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 881 out of 1000 SELECT POW(3, 2), 57, POWER(POW(materialize(3), 2), toUInt256(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(materialize(3), 2), toUInt256(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(3, 2), 57, POWER(POW(materialize(3), 2), toUInt256(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 882 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 883 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 884 out of 1000 EXPLAIN ESTIMATE SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) PREWHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'EXPLAIN ESTIMATE SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) PREWHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000017e0783b 8. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc396a 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 10. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 885 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 886 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(toUInt128(3)))), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(toUInt128(3)))), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 888 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(POW(3, toUInt256(2)), toUInt128(3)))), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(toLowCardinality(POW(3, toUInt256(2)), toUInt128(3)))), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(toLowCardinality(POW(3, toUInt256(2)), toUInt128(3)))), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 889 out of 1000 SELECT POW(3, 2), 57, POWER(tupleElement(time, 1), POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toUInt128(3))), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(tupleElement(time, 1), POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(toUInt128(3))), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POW(3, 2), 57, POWER(time.1, POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(toUInt128(3))), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 890 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(toUInt128(3)))), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 891 out of 1000 SELECT POW(toNullable(3), 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(POW(toLowCardinality(3), materialize(2)), toUInt128(3)))), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(toNullable(3), 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(toLowCardinality(POW(toLowCardinality(3), materialize(2)), toUInt128(3)))), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(toNullable(3), 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((materialize(toLowCardinality(POW(toLowCardinality(3), materialize(2)), toUInt128(3)))), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 892 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) GROUP BY GROUPING SETS ( (materialize(toUInt128(3))), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) GROUP BY GROUPING SETS ((materialize(toUInt128(3))), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POW(3, 2), 57, POWER(POW(3, 2), toNullable(2)) WHERE toLowCardinality(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) GROUP BY GROUPING SETS ((materialize(toUInt128(3))), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 893 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) WITH TOTALS Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 894 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(toUInt128(3)))), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 895 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) WITH TOTALS Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 896 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3, 2), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(toUInt128(3)))), (pow(3, toNullable(2)))) Got boring AST Fuzzing step 897 out of 1000 SELECT POW(3, 2), 57, POWER(POW(3), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (pow(3, toNullable(2)))) Error on processing query 'SELECT POW(3, 2), 57, POWER(POW(3), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3))), (pow(3, toNullable(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 57, POWER(POW(3), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3))), (pow(3, toNullable(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 898 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (materialize(toLowCardinality(toUInt128(3)))), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time), toUInt128(3))), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time), toUInt128(3))), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time), toUInt128(3))), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 901 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (pow(3, 2))) Got boring AST Fuzzing step 902 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(toUInt128(3))), (pow(3, toNullable(2)))) WITH ROLLUP Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3))), (pow(3, toNullable(2)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 903 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT POW(3, 2), 57 PREWHERE toLowCardinality(2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 PREWHERE toLowCardinality(2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 905 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 906 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 907 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 908 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'EXPLAIN PIPELINE SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 909 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 910 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(POW(materialize(3), 2), 3, 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(POW(materialize(3), 2), 3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(POW(materialize(3), 2), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 911 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, toUInt128(2)))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, toUInt128(2))))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, toUInt128(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 912 out of 1000 EXPLAIN PIPELINE header = true SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'EXPLAIN PIPELINE header = true SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 913 out of 1000 SELECT POW(3, toUInt128(2)), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, toUInt128(2)), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POW(3, toUInt128(2)), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 914 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 915 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 916 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 917 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, sleep(2), 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, sleep(2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, sleep(2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 918 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 919 out of 1000 SELECT POW(3, materialize(toUInt256(2))), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, materialize(toUInt256(2))), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(3, materialize(toUInt256(2))), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 920 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 921 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 922 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 923 out of 1000 SELECT POW(3, 2), materialize(toUInt256(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 SELECT POW(3, 2), toUInt256(57) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(toNullable(toUInt256(2)), 57, POWER(materialize(2), 3), time)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(tupleElement(time, 1), 3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), toUInt256(57) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(toNullable(toUInt256(2)), 57, POWER(materialize(2), 3), time)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(tupleElement(time, 1), 3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POW(3, 2), toUInt256(57) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(toNullable(toUInt256(2)), 57, POWER(materialize(2), 3), time)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(time.1, 3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 925 out of 1000 SELECT POW(3, 2), materialize(toUInt256(57)) WHERE toLowCardinality(pow(materialize(3), toNullable(2)), 2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 2))) Error on processing query 'SELECT POW(3, 2), materialize(toUInt256(57)) WHERE toLowCardinality(pow(materialize(3), toNullable(2)), 2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(3, 2), materialize(toUInt256(57)) WHERE toLowCardinality(pow(materialize(3), toNullable(2)), 2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 926 out of 1000 SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, toNullable(2)))) Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(power(toLowCardinality(3), materialize(toLowCardinality(2))), 3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(power(toLowCardinality(3), materialize(toLowCardinality(2))), 3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(power(toLowCardinality(3), materialize(toLowCardinality(2))), 3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 930 out of 1000 SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 931 out of 1000 SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) WITH CUBE Error on processing query 'SELECT POW(3, 2), materialize(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 932 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT POW(toNullable(toUInt256(3)), 2), toNullable(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POW(toNullable(toUInt256(3)), 2), toNullable(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(toNullable(toUInt256(3)), 2), toNullable(57) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 934 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 935 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 936 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 937 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 938 out of 1000 SELECT POW(3, materialize(toUInt128(2))), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, materialize(toUInt128(2))), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POW(3, materialize(toUInt128(2))), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 939 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(toUInt256(2), 2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(toUInt256(2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(toUInt256(2), 2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 940 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(toLowCardinality(2)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT POW(3, 2), 57 PREWHERE POWER(3, materialize(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 PREWHERE POWER(3, materialize(2)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 943 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 944 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 945 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 946 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 947 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 948 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, power(toNullable(3), toLowCardinality(2)), 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, power(toNullable(3), toLowCardinality(2)), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, power(toNullable(3), toLowCardinality(2)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 949 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 950 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 951 out of 1000 SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(POWER(materialize(toNullable(3)), 2), 3)), (pow(3, 2))) Error on processing query 'SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(POWER(materialize(toNullable(3)), 2), 3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(3, 2), 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(POWER(materialize(toNullable(3)), 2), 3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 952 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT 57 PREWHERE POW(toUInt256(3), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'SELECT 57 PREWHERE POW(toUInt256(3), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 57 PREWHERE POW(toUInt256(3), 2) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 954 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) WITH ROLLUP Error on processing query 'SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 955 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 3, 2))) Error on processing query 'SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 956 out of 1000 EXPLAIN PIPELINE SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 957 out of 1000 SELECT 57 WHERE toLowCardinality(materialize(2)) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(POWER(POW(materialize(3), 2), 2, materialize(3)), 3, 2))) Error on processing query 'SELECT 57 WHERE toLowCardinality(materialize(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(POWER(POW(materialize(3), 2), 2, materialize(3)), 3, 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 57 WHERE toLowCardinality(materialize(2)) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(POWER(POW(materialize(3), 2), 2, materialize(3)), 3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 958 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 959 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 960 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 961 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 962 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 963 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 964 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 965 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 966 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 967 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 968 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 969 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 970 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 971 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 972 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(materialize(toLowCardinality(3)), 2))) Error on processing query 'SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(toLowCardinality(3)), 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(materialize(toLowCardinality(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 973 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(toNullable(toUInt128(3)), 2))) Error on processing query 'SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(toNullable(toUInt128(3)), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(toNullable(toUInt128(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 974 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(toLowCardinality(3), 2))) Error on processing query 'SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(toLowCardinality(3), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 975 out of 1000 SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (3), (pow(3, 2))) Error on processing query 'SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 57 WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((3), (pow(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 976 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 978 out of 1000 EXPLAIN QUERY TREE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 EXPLAIN QUERY TREE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 980 out of 1000 EXPLAIN QUERY TREE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 981 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 983 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 984 out of 1000 EXPLAIN AST SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('materialize'): materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 986 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 988 out of 1000 EXPLAIN QUERY TREE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 EXPLAIN QUERY TREE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, POW(3, 2), 2))) Error on processing query 'SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 993 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('materialize'): materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ((toLowCardinality(3)), (pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 994 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 995 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 996 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Got boring AST Fuzzing step 997 out of 1000 EXPLAIN ESTIMATE SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 EXPLAIN SYNTAX SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 EXPLAIN SELECT materialize(toNullable(57)) WHERE toLowCardinality(2) GROUP BY GROUPING SETS ( (toLowCardinality(3)), (pow(3, 2))) Query succeeded, using this AST as a start Fuzzing step 0 out of 1000 Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 1 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 2 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(power(materialize(materialize(3)), 2), toUInt256(2))))), time), 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(power(materialize(materialize(3)), 2), toUInt256(2))))), time), 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 3 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 257 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 257) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 4 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 5 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, POW(3, 2), 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, POW(3, 2), 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 6 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 7 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 8 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 9 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 10 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 11 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 12 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize(toLowCardinality('ok')), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize(toLowCardinality('ok')), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 13 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 14 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 15 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(toLowCardinality(toNullable('second')), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toLowCardinality(toNullable('second')), time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 16 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 17 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 18 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toUInt256(2)))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toUInt256(2)))), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 19 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 20 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toUInt256(3)), toUInt128(1))), toDateTime(tupleElement(toNullable(toUInt128(3)), time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toUInt256(3)), toUInt128(1))), toDateTime(tupleElement(toNullable(toUInt128(3)), time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 21 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 22 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 23 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 24 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log WHERE toUInt128(2) ORDER BY event_time DESC LIMIT -9223372036854775808 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toLowCardinality(toNullable(toUInt256(2))), toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time), toUInt256(3) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log WHERE toUInt128(2) ORDER BY event_time DESC LIMIT -9223372036854775808) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toLowCardinality(toNullable(toUInt256(2))), toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time), toUInt256(3)': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 25 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 26 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 27 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 28 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) ORDER BY event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 23. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 29 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1048577 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1048577) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1048577) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 30 out of 1000 WITH ( SELECT toString(toUInt128(2), 57, POWER(2, 3), time), event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toString(materialize(toNullable(toUInt128(57))), POWER(3, materialize(2)), time), 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT toString(toUInt128(2), 57, POWER(2, 3), time), event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toString(materialize(toNullable(toUInt128(57))), POWER(3, materialize(2)), time), 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT toString(toUInt128(2), 57, POWER(2, 3), time), event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 31 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 32 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 33 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 34 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1, time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1, time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 35 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 36 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), materialize(57), POWER(toNullable(2), toLowCardinality(3), 2), time)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), materialize(57), POWER(toNullable(2), toLowCardinality(3), 2), time)), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 37 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 38 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 39 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 40 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 41 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(power(3, materialize(toLowCardinality(2))), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(power(3, materialize(toLowCardinality(2))), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 42 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 43 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toUInt256(2))))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toUInt256(2))))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 44 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -9223372036854775807 ) AS time SELECT if(dateDiff(toNullable(57), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -9223372036854775807) AS time SELECT if(dateDiff(toNullable(57), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 45 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(POW(materialize(3), materialize(2)), time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(POW(materialize(3), materialize(2)), time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 46 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY POW(3, toLowCardinality(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)), POWER(POW(toString(toUInt128(2), 57, time), 3, toNullable(2)), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)), 2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY POW(3, toLowCardinality(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)), POWER(POW(toString(toUInt128(2), 57, time), 3, toNullable(2)), POWER(toLowCardinality(toLowCardinality(3)), toNullable(2)), 2)': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 47 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 48 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE POWER(POW(3, 2), toLowCardinality(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE POWER(POW(3, 2), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 49 out of 1000 EXPLAIN actions = true, json = true, sorting = true WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1)))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN actions = true, json = true, sorting = true WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1)))) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 50 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -2 ) AS time SELECT if(equals(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -2) AS time SELECT if(equals(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -2) AS time SELECT if(equals(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 51 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 52 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1024 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1024) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 53 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 54 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 55 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(power(toNullable(3), 2), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(power(toNullable(3), 2), time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 56 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 57 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 0 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 58 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 59 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 60 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), toNullable(3), toLowCardinality(toUInt128(2)), POW(3, toLowCardinality(2)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), toNullable(3), toLowCardinality(toUInt128(2)), POW(3, toLowCardinality(2)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), toNullable(3), toLowCardinality(toUInt128(2)), POW(3, toLowCardinality(2)) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 61 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY power(3, 2) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY power(3, 2) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.trace_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY power(3, 2) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 62 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 63 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 64 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 65 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) ASC, event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 66 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 67 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 68 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 69 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 70 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 71 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 72 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 73 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 74 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 75 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 76 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 77 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 78 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 79 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, POW(toLowCardinality(toLowCardinality(3)), 2), 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, POW(toLowCardinality(toLowCardinality(3)), 2), 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 80 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 81 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 82 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 9223372036854775806 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 9223372036854775806) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 83 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 84 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 85 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 86 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 87 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 88 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 89 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 90 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 91 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 92 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 93 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toString(2, 57, POWER(POW(3, 2), 2), time), 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toString(2, 57, POWER(POW(3, 2), 2), time), 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 94 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 95 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 96 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY toNullable(toUInt256(57)) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY toNullable(toUInt256(57)) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 97 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 98 out of 1000 WITH ( SELECT event_time_microseconds FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 99 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 100 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 101 out of 1000 EXPLAIN actions = true, indexes = true WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN actions = true, indexes = true WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 102 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 103 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -9223372036854775807 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -9223372036854775807) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 104 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log WHERE toLowCardinality(toUInt128(57)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log WHERE toLowCardinality(toUInt128(57)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:249: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000017e0756d 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000017e072b0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:537: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174efd9b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 105 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 106 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toNullable('ok')), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toNullable('ok')), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 107 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 108 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time) ASC, event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 109 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 110 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE power(toNullable(toNullable(3)), toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE power(toNullable(toNullable(3)), toNullable(2))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 111 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 112 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 113 out of 1000 WITH ( SELECT event_time_microseconds, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), event_time FROM system.trace_log PREWHERE power(toNullable(toNullable(3)), toNullable(2)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), event_time FROM system.trace_log PREWHERE power(toNullable(toNullable(3)), toNullable(2)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), FixedString(57), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 114 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE toLowCardinality(toNullable(toLowCardinality(2))) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toLowCardinality(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE toLowCardinality(toNullable(toLowCardinality(2))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toLowCardinality(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 115 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT -2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT -2147483648) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 116 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 117 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 118 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT -2147483648) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 119 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 120 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log WHERE materialize(toUInt128(2)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(POW(2)), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log WHERE materialize(toUInt128(2)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(POW(2)), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column materialize(_CAST('2'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:249: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000017e0756d 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000017e072b0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:537: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174efd9b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 121 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 122 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(56, time, 2))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), toNullable(57), toUInt256(materialize(toUInt256(3))), POWER(toLowCardinality(2), 3) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(56, time, 2))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), toNullable(57), toUInt256(materialize(toUInt256(3))), POWER(toLowCardinality(2), 3) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(56, time, 2))) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), toNullable(57), toUInt256(materialize(toUInt256(3))), POWER(toLowCardinality(2), 3) ORDER BY event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 123 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT -2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS LAST LIMIT -2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 124 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 125 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(toUInt128(2, 57), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toUInt128(2, 57), time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': 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 (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toUInt128(2, 57), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 126 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 127 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(57). In query (SELECT event_time_microseconds, event_time FROM system.trace_log PREWHERE toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 128 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 129 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), pow(3, toNullable(2)), power(toNullable(3), toLowCardinality(2)), power(3, 2) ORDER BY event_time DESC LIMIT -2147483649 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log GROUP BY materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), pow(3, toNullable(2)), power(toNullable(3), toLowCardinality(2)), power(3, 2) ORDER BY event_time DESC LIMIT -2147483649) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 130 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 131 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 132 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 0 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 133 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(materialize(3), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(materialize(3), time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 134 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 135 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 136 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 138 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 139 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 140 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 141 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 142 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 143 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 144 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 145 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1048575 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(materialize(materialize(3)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1048575) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(materialize(materialize(3)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 146 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 147 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 148 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 150 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 151 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 152 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 153 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 154 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 155 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 156 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 157 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 158 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 159 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 160 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 161 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 162 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 163 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 164 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 165 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 166 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 167 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 168 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 169 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 170 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 171 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 174 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 175 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 176 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 177 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 178 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 179 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 180 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 181 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 182 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 183 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 184 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 185 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 186 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 187 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 188 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 189 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 191 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 193 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 194 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 195 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 196 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 198 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 199 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 200 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 201 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 202 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 203 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 204 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 205 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 206 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 207 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 208 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 209 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 210 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 211 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 212 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 213 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 214 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 215 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 216 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 218 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 219 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 220 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 222 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 223 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 224 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 225 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 227 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 228 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 230 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 231 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 232 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 233 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 234 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 235 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 236 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 237 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 238 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) PREWHERE POWER(toLowCardinality(3), toLowCardinality(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) PREWHERE POWER(toLowCardinality(3), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 239 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 240 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 242 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 243 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 245 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if('ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if('ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 246 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 247 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 248 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 249 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 250 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 251 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 252 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 253 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 254 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 255 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 256 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 257 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 258 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 259 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 260 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 261 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 262 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 263 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 264 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 265 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 266 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 267 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 268 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 270 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 271 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 272 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 273 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT -1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT -1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 274 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 275 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 276 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 278 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 280 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 281 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 282 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 283 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 285 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 286 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 287 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 288 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 289 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 290 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 291 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 292 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 293 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 294 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 295 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 296 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 297 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 299 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 300 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 301 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 302 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 303 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 304 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 306 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 307 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 308 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 309 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 310 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 311 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 313 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 314 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 315 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 316 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 317 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 318 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 319 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 320 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 321 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 322 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 323 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 324 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 325 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 326 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 327 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 328 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 329 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 330 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 331 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 332 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 333 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 334 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 335 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 336 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 337 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 338 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 339 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 340 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 341 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 342 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 344 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 345 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 346 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 347 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 348 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 349 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 350 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 351 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 352 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 353 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 354 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 355 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 356 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 358 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 359 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 360 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 362 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 363 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 364 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 365 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 366 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 367 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 368 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 369 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 370 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 371 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 372 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 374 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 375 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 377 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 378 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 379 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 380 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 381 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 382 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 383 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 384 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 385 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 386 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 387 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 388 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 389 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 391 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 392 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 394 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 395 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 396 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 398 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 400 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 401 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 402 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 403 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 404 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 405 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 406 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 407 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 408 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 409 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 410 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 411 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 412 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 413 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 414 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 415 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 416 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 417 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 418 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 419 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 420 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 421 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 422 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 424 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 425 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 426 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 427 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 428 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 429 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 430 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 431 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 432 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 433 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 434 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 435 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 436 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 437 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 439 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 440 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 441 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 442 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 443 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 444 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 445 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 446 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 447 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 448 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 449 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 450 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 451 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 452 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 453 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 454 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 455 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 456 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 457 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 458 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 459 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 460 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 461 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 462 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 463 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 464 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 465 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 467 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE materialize(2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE materialize(2)': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 468 out of 1000 WITH ( SELECT event_time_microseconds, toString(57, POWER(3, materialize(2)), time), event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, toString(57, POWER(3, materialize(2)), time), event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, toString(57, POWER(3, materialize(2)), time), event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 469 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 470 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 471 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 473 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 474 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 475 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 476 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 477 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 478 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 479 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 480 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 481 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 482 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 483 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 484 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 485 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 487 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 488 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 489 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 490 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 491 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 492 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 493 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 494 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 496 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 497 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 498 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 499 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 500 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 501 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 502 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 503 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 504 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 505 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 506 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 507 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 508 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 509 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 510 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 511 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 513 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 514 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 515 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 516 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 517 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 518 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 521 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 522 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 523 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 524 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 525 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 526 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 527 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 528 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 529 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 530 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 531 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 532 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 533 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 534 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 535 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 536 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 537 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 538 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 539 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 540 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 541 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 542 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 543 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 544 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 545 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 546 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 547 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 548 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 549 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 550 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 551 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 553 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 554 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1048575 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1048575) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 555 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 556 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 557 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 558 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 559 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 560 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 561 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 562 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 2147483647) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 563 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 564 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 565 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 567 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 568 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 570 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 571 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 572 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 573 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 575 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 576 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 577 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 578 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 579 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 581 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 582 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 583 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 584 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 585 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 586 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 587 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 588 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 590 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 591 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 592 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 593 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 594 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 595 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 596 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 597 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 598 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 599 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE power(toLowCardinality(3), toNullable(3), materialize(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE power(toLowCardinality(3), toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 600 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 601 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 602 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 603 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 604 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 605 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 606 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 607 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT -9223372036854775808 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT -9223372036854775808) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 608 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 609 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 610 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 611 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 612 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 613 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 614 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 615 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 616 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 617 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 618 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 619 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 620 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 622 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 623 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 624 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 625 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 626 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 627 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 628 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 629 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 630 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 631 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 632 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 634 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 635 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 636 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 638 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 639 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 640 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 641 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log WHERE POWER(POW(3, 2), 2, materialize(materialize(3))) ORDER BY event_time ASC LIMIT 255 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log WHERE POWER(POW(3, 2), 2, materialize(materialize(3))) ORDER BY event_time ASC LIMIT 255) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.trace_log WHERE POWER(POW(3, 2), 2, materialize(materialize(3))) ORDER BY event_time ASC LIMIT 255) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 642 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 643 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 644 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 645 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 647 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 648 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 649 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 650 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 651 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 652 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 653 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 654 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 656 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 657 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 658 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 659 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 660 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 661 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 662 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 663 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 664 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 665 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 666 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 667 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 668 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 669 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 670 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 671 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 672 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 674 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 675 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 676 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 677 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 678 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 679 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 680 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 682 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 683 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 684 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 685 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 686 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 687 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 688 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 689 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 690 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 691 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 692 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 693 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 695 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 696 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 697 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 698 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 699 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 700 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 701 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 702 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 703 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 704 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 705 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 706 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 707 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 708 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 709 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 710 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 711 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 712 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 713 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 714 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 715 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 716 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 717 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 718 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 719 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 720 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 721 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 722 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 723 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 724 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 725 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 726 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 727 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 728 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 729 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 730 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 731 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 732 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 733 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 734 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 735 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 736 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 737 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 738 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 739 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 740 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 741 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 742 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 743 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 744 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 745 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 746 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 747 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 748 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 749 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(materialize(toLowCardinality(toFixedString('second', 6))), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(materialize(toLowCardinality(toFixedString('second', 6))), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 750 out of 1000 WITH ( SELECT event_time_microseconds FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(toNullable(2), toLowCardinality(3), 2), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(toNullable(2), toLowCardinality(3), 2), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(toNullable(2), toLowCardinality(3), 2), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 751 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 752 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 753 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 754 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 755 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 756 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 758 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 759 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 760 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 762 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 763 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 764 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 766 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 767 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 769 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 770 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 771 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 772 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 773 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement('01473_metric_log_table_event_start_time_microseconds_test', time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement('01473_metric_log_table_event_start_time_microseconds_test', time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 774 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 775 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 776 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 777 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 778 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 779 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 780 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 781 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 782 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 783 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 784 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 785 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 786 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 787 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 788 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 789 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 790 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 791 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 792 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 793 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 794 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 795 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 796 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 797 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 798 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 799 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 800 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 801 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 803 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 804 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 805 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 806 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 807 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 808 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 809 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 810 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 811 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 812 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 813 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 815 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 816 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 817 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 818 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 819 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 820 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 821 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 822 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 823 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 824 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 825 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 826 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 827 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 828 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 829 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 830 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 831 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 832 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 833 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 834 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 835 out of 1000 WITH ( SELECT event_time_microseconds, POWER(toLowCardinality(3), 2), event_time FROM system.trace_log WHERE toString(toUInt128(57), POWER(toNullable(3), 2), time) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT power(toLowCardinality(toNullable(3)), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(toLowCardinality(3), 2), event_time FROM system.trace_log WHERE toString(toUInt128(57), POWER(toNullable(3), 2), time) ORDER BY event_time ASC LIMIT 1) AS time SELECT power(toLowCardinality(toNullable(3)), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, POWER(toLowCardinality(3), 2), event_time FROM system.trace_log WHERE toString(toUInt128(57), POWER(toNullable(3), 2), time) ORDER BY event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 836 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 837 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 838 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 839 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 840 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 843 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 844 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 845 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 100, 2))) = 0, 'ok', toString(POW(3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 100, 2))) = 0, 'ok', toString(POW(3, 2), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 846 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 847 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 848 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 849 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 850 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 851 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 852 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 853 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 855 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 857 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 858 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 859 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 860 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 861 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 862 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 863 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 864 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 865 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 866 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 867 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 868 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 869 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 870 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 871 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 875 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 876 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 877 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 879 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 880 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 881 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 882 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 883 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 884 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 885 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 886 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 887 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 889 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 890 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 892 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 893 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 894 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 896 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 897 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 898 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 899 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 900 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 901 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 902 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 903 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 904 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 905 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 906 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 907 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 908 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 909 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 910 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 911 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 912 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 913 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 914 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 915 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 916 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 917 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 918 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 919 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 920 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 921 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 922 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 923 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 924 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 925 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 926 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 928 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 929 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 930 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 931 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 932 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 933 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 934 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 935 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 936 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 937 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 938 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 939 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 940 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 941 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 942 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 943 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 944 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 945 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 946 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 947 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 948 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 949 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 950 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 951 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 952 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 953 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 954 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 955 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 956 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 957 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 958 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 959 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 960 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 961 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 962 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 963 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 965 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 966 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 967 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 968 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 969 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 970 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 971 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 972 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 973 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 974 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 975 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(t. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 976 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 977 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 978 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 979 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 980 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 981 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 982 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 984 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 985 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 986 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 987 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 988 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 989 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 991 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 992 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 994 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 995 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 996 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 997 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 998 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 999 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.trace_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 2 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 3 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 4 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 5 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 7 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 9 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 11 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 13 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 14 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 15 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test' Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 16 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 17 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 18 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 19 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 21 out of 1000 EXPLAIN SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 EXPLAIN SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 23 out of 1000 EXPLAIN SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 24 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 26 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 27 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 28 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 31 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 32 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_log_table_event_start_time_microseconds_test' Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 33 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 34 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 35 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 36 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 38 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 39 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_log_table_event_start_time_microseconds_test' Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 40 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test' Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 41 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 42 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 45 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 46 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 47 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 49 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 50 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 51 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 52 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 53 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 54 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 56 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 57 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 59 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 60 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 61 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 62 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 63 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 64 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 65 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 66 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 67 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 68 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 69 out of 1000 SELECT materialize(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56))) Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 72 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 73 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 74 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) PREWHERE POWER(materialize(2), toLowCardinality(3)) Error on processing query 'SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) PREWHERE POWER(materialize(2), toLowCardinality(3))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 75 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 76 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 77 out of 1000 SELECT materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 79 out of 1000 SELECT materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 80 out of 1000 SELECT materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 81 out of 1000 SELECT materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 82 out of 1000 SELECT materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) Got boring AST Fuzzing step 83 out of 1000 SELECT materialize(toFixedString(56)) Error on processing query 'SELECT materialize(toFixedString(56))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT materialize(toFixedString(56)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 84 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 86 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Got boring AST Fuzzing step 87 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Got boring AST Fuzzing step 89 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Got boring AST Fuzzing step 90 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Got boring AST Fuzzing step 91 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Got boring AST Fuzzing step 92 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Got boring AST Fuzzing step 93 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Got boring AST Fuzzing step 94 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) Got boring AST Fuzzing step 95 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 97 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 98 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 99 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 100 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 101 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 102 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 103 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 104 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toLowCardinality(56) Got boring AST Fuzzing step 106 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toLowCardinality(56) Got boring AST Fuzzing step 107 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 109 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 110 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 111 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 112 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 113 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 114 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 115 out of 1000 SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 Got boring AST Fuzzing step 117 out of 1000 SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 Got boring AST Fuzzing step 118 out of 1000 SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0 Error on processing query 'SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 119 out of 1000 SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 Got boring AST Fuzzing step 120 out of 1000 SELECT materialize('01473_query_log_table_event_start_time_microseconds_test'), 56 Got boring AST Fuzzing step 121 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 123 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 124 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 125 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 126 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 127 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56) Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56) Got boring AST Fuzzing step 129 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56) Got boring AST Fuzzing step 130 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 132 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 134 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 135 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 137 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 138 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 139 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT toLowCardinality(toNullable(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT toLowCardinality(toNullable(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT toLowCardinality(toNullable(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 142 out of 1000 SELECT toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), toNullable(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Error on processing query 'SELECT toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), toNullable(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56': 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('01473_query_log_table_event_start_time_microseconds_test', 56), toNullable(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 143 out of 1000 SELECT toLowCardinality(toNullable(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 144 out of 1000 SELECT toLowCardinality(toNullable(materialize(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT toLowCardinality(toNullable(materialize(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 146 out of 1000 SELECT toLowCardinality(toNullable(materialize(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 147 out of 1000 SELECT toLowCardinality(toNullable(materialize(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 148 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 150 out of 1000 EXPLAIN PIPELINE header = true SELECT toLowCardinality(materialize(3)), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Error on processing query 'EXPLAIN PIPELINE header = true SELECT toLowCardinality(materialize(3)), '01473_query_log_table_event_start_time_microseconds_test', 56, 56': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 151 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 152 out of 1000 SELECT toLowCardinality(materialize(materialize(toLowCardinality(3)))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 155 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), toUInt256(56) Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT toLowCardinality(materialize(toLowCardinality(toString(toUInt128(57), time), 3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Error on processing query 'SELECT toLowCardinality(materialize(toLowCardinality(toString(toUInt128(57), time), 3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(materialize(toLowCardinality(toString(toUInt128(57), time), 3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 157 out of 1000 SELECT materialize(toLowCardinality(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), toUInt256(56) Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 SELECT materialize(toLowCardinality(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), toUInt256(56) Got boring AST Fuzzing step 159 out of 1000 SELECT materialize(toLowCardinality(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), toUInt256(56) WHERE power(3, 2) Error on processing query 'SELECT materialize(toLowCardinality(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), toUInt256(56) WHERE power(3, 2)': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 160 out of 1000 SELECT materialize(toLowCardinality(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), toUInt256(56) Got boring AST Fuzzing step 161 out of 1000 SELECT materialize(toLowCardinality(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 SELECT materialize(toLowCardinality(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Got boring AST Fuzzing step 163 out of 1000 SELECT materialize(toLowCardinality(toUInt256(3))), '01473_query_log_table_event_start_time_microseconds_test', toNullable(toNullable(56)), 56 Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT materialize(toUInt256(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 SELECT materialize(toUInt256(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), toNullable(56) Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 SELECT materialize(toUInt256(3)), '01473_query_log_table_event_start_time_microseconds_test', toNullable(56), 56 Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT materialize(toUInt256(3)) Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT materialize(toUInt256(3)) Got boring AST Fuzzing step 169 out of 1000 SELECT materialize(toUInt256(3)) Got boring AST Fuzzing step 170 out of 1000 SELECT materialize(toUInt256(3)) Got boring AST Fuzzing step 171 out of 1000 SELECT materialize(toUInt256(3)) Got boring AST Fuzzing step 172 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(toUInt256(3)) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(toUInt256(3))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('materialize'): materialize(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 173 out of 1000 SELECT toUInt256(3) Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT toUInt256(3) Got boring AST Fuzzing step 175 out of 1000 SELECT toUInt256(3) Got boring AST Fuzzing step 176 out of 1000 SELECT toUInt256(3) Got boring AST Fuzzing step 177 out of 1000 SELECT 3 Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT 3 Got boring AST Fuzzing step 179 out of 1000 SELECT 3 Got boring AST Fuzzing step 180 out of 1000 SELECT 3 Got boring AST Fuzzing step 181 out of 1000 SELECT 3 Got boring AST Fuzzing step 182 out of 1000 SELECT pow(3, materialize(2)), 3 Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT pow(3, materialize(2)), 3 Got boring AST Fuzzing step 184 out of 1000 SELECT pow(3, materialize(2)), 3 Got boring AST Fuzzing step 185 out of 1000 SELECT pow(3, materialize(2)), 3 Got boring AST Fuzzing step 186 out of 1000 SELECT pow(3, materialize(2)), 3 Got boring AST Fuzzing step 187 out of 1000 SELECT pow(3, materialize(2)), 3 Got boring AST Fuzzing step 188 out of 1000 SELECT pow(3, 2), 3 Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 SELECT pow(3, 2), 3 Got boring AST Fuzzing step 190 out of 1000 SELECT pow(3, 2), 3 Got boring AST Fuzzing step 191 out of 1000 SELECT pow(3, 2), 3 Got boring AST Fuzzing step 192 out of 1000 SELECT pow(3, 2), 3 Got boring AST Fuzzing step 193 out of 1000 SELECT pow(3, 2), 3 Got boring AST Fuzzing step 194 out of 1000 SELECT pow(2), 3 WHERE power(3, toNullable(3), materialize(2)) Error on processing query 'SELECT pow(2), 3 WHERE power(3, toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(2), 3 WHERE power(3, toNullable(3), materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 195 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2), 3 Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2), 3 GROUP BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) Error on processing query 'SELECT pow(materialize(toLowCardinality(3)), 2), 3 GROUP BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(materialize(toLowCardinality(3)), 2), 3 GROUP BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 197 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2), toLowCardinality(3) Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 SELECT pow(materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 3), 2) Error on processing query 'SELECT pow(materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 3), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 201 out of 1000 SELECT pow(materialize(3), 2) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) Error on processing query 'SELECT pow(materialize(3), 2) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(materialize(3), 2) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 202 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 203 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 204 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT pow(2) Error on processing query 'SELECT pow(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 206 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) GROUP BY toUInt128(56), if(dateDiff('second', toDateTime(tupleElement(POWER(toLowCardinality(toUInt128(3)), toLowCardinality(2)), time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)) Error on processing query 'EXPLAIN PIPELINE SELECT pow(3, 2) GROUP BY toUInt128(56), if(dateDiff('second', toDateTime(tupleElement(POWER(toLowCardinality(toUInt128(3)), toLowCardinality(2)), time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT pow(3, 2) GROUP BY toUInt128(56), if(dateDiff('second', toDateTime(tupleElement(POWER(toLowCardinality(toUInt128(3)), toLowCardinality(2)), time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 207 out of 1000 SELECT POWER(toLowCardinality(3), 2), pow(3, 2) GROUP BY POW(materialize(3), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(materialize(0)), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) Error on processing query 'SELECT POWER(toLowCardinality(3), 2), pow(3, 2) GROUP BY POW(materialize(3), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(materialize(0)), 'ok', toString(2, 57, POWER(materialize(2), 3), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(toLowCardinality(3), 2), pow(3, 2) GROUP BY POW(materialize(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(materialize(0)), 'ok', toString(2, 57, POWER(materialize(2), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 208 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 209 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 210 out of 1000 SELECT pow(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 212 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 213 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 214 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 215 out of 1000 SELECT pow(materialize(3), toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT pow(materialize(3), toNullable(2)) PREWHERE toUInt128(3) Error on processing query 'SELECT pow(materialize(3), toNullable(2)) PREWHERE toUInt128(3)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 219 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 220 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 221 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 222 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 224 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 225 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 226 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 227 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 228 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 229 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 230 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 231 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 232 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 233 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 234 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 235 out of 1000 SELECT pow(toString(2, 57, POWER(POW(2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 2, materialize(materialize(3))), time), 3, toNullable(2)) Error on processing query 'SELECT pow(toString(2, 57, POWER(POW(2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 2, materialize(materialize(3))), time), 3, toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(toString(2, 57, POWER(POW(2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 2, materialize(materialize(3))), time), 3, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 236 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 237 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 238 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 239 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 240 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 241 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 242 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 243 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 244 out of 1000 SELECT pow(3, 2) GROUP BY toString(toNullable(toUInt128(57)), time), '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, toNullable(2)) Error on processing query 'SELECT pow(3, 2) GROUP BY toString(toNullable(toUInt128(57)), time), '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, toNullable(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(3, 2) GROUP BY toString(toNullable(toUInt128(57)), time), '01473_metric_log_table_event_start_time_microseconds_test', POWER(3, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 245 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 246 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT pow(materialize(toLowCardinality(3))) Error on processing query 'SELECT pow(materialize(toLowCardinality(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(materialize(toLowCardinality(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 248 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 249 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 250 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 251 out of 1000 SELECT pow(materialize(toLowCardinality(56, 3)), 2) Error on processing query 'SELECT pow(materialize(toLowCardinality(56, 3)), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT pow(materialize(toLowCardinality(56, 3)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 252 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 253 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 254 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 255 out of 1000 SELECT pow(toLowCardinality(3), toLowCardinality(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 SELECT pow(toLowCardinality(3), toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT pow(toLowCardinality(2)) Error on processing query 'SELECT pow(toLowCardinality(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 258 out of 1000 SELECT pow(toLowCardinality(3), toLowCardinality(2)) Got boring AST Fuzzing step 259 out of 1000 SELECT pow(toLowCardinality(3), toLowCardinality(toLowCardinality(2))) Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT pow(toLowCardinality(3), toLowCardinality(toLowCardinality(2))) Got boring AST Fuzzing step 261 out of 1000 SELECT pow(toLowCardinality(3), toLowCardinality(toLowCardinality(2))) Got boring AST Fuzzing step 262 out of 1000 SELECT pow(3, toLowCardinality(toLowCardinality(2))) Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT pow(3, toLowCardinality(toLowCardinality(2))) Got boring AST Fuzzing step 264 out of 1000 SELECT pow(3, toLowCardinality(toLowCardinality(2))) Got boring AST Fuzzing step 265 out of 1000 SELECT pow(3, toLowCardinality(toLowCardinality(2))) Got boring AST Fuzzing step 266 out of 1000 SELECT pow(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 268 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 269 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 270 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 271 out of 1000 SELECT pow(3, toLowCardinality(toLowCardinality(2), 2)) PREWHERE toNullable(toLowCardinality(3)) Error on processing query 'SELECT pow(3, toLowCardinality(toLowCardinality(2), 2)) PREWHERE toNullable(toLowCardinality(3))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT pow(3, toLowCardinality(toLowCardinality(2), 2)) PREWHERE toNullable(toLowCardinality(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 272 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 274 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 275 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 276 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 277 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 278 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 279 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 280 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 281 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 282 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 283 out of 1000 SELECT pow(pow(3, 2), 3, 2) Error on processing query 'SELECT pow(pow(3, 2), 3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(pow(3, 2), 3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 284 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 285 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 286 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 287 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 288 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 289 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 290 out of 1000 EXPLAIN PIPELINE compact = true SELECT pow(3, 2) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 291 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 292 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 293 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 294 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 295 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 296 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 297 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 298 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 299 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 300 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 301 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 302 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 303 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 304 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 305 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 306 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 307 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 308 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT pow(3, 2) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 309 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) PREWHERE materialize(57) Error on processing query 'EXPLAIN PIPELINE SELECT pow(3, 2) PREWHERE materialize(57)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000017e0783b 8. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc43ae 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 10. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 310 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 311 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 312 out of 1000 SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT pow(materialize(3), 2) PREWHERE POWER(toNullable(3), 2) Error on processing query 'SELECT pow(materialize(3), 2) PREWHERE POWER(toNullable(3), 2)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 314 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 315 out of 1000 SELECT pow(materialize(3)) Error on processing query 'SELECT pow(materialize(3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(materialize(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 316 out of 1000 SELECT 'ok', pow(materialize(3), toUInt256(2), 2) Error on processing query 'SELECT 'ok', pow(materialize(3), toUInt256(2), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 'ok', pow(materialize(3), toUInt256(2), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 317 out of 1000 SELECT pow(3, 2) GROUP BY pow(3, 2), toLowCardinality(3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) Error on processing query 'SELECT pow(3, 2) GROUP BY pow(3, 2), toLowCardinality(3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(3, 2) GROUP BY pow(3, 2), toLowCardinality(3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 318 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 320 out of 1000 SELECT pow(2) Error on processing query 'SELECT pow(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 321 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 322 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT pow(3, 2) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 323 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 324 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 325 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 326 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 327 out of 1000 SELECT pow(3, toLowCardinality(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT pow(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 SELECT pow(3, toNullable(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 2)) Error on processing query 'SELECT pow(3, toNullable(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 2))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT pow(3, toNullable(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 330 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 332 out of 1000 SELECT pow(3, toUInt256(2)) Error on processing query 'SELECT pow(3, toUInt256(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT pow(3, toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 333 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 334 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 335 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 336 out of 1000 SELECT pow(2) Error on processing query 'SELECT pow(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 337 out of 1000 SELECT pow(3, 2) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 1, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) Error on processing query 'SELECT pow(3, 2) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 1, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT pow(3, 2) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 1, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 338 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 339 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT pow(3) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT pow(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 340 out of 1000 SELECT pow(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 342 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 344 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 345 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 346 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 347 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 348 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 349 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 351 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 352 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 353 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 354 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 355 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 356 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 358 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Got boring AST Fuzzing step 360 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Got boring AST Fuzzing step 361 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 363 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 364 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 365 out of 1000 EXPLAIN SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 368 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Got boring AST Fuzzing step 370 out of 1000 EXPLAIN SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 372 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 376 out of 1000 EXPLAIN SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 378 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 379 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 380 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 381 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 382 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 384 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 385 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 386 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 387 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 388 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Got boring AST Fuzzing step 389 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 391 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 392 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 393 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 394 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 395 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 396 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 397 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 398 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 399 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 400 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 401 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 402 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 403 out of 1000 SELECT pow(3, 2) PREWHERE toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) Error on processing query 'SELECT pow(3, 2) PREWHERE toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57)': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(FixedString(57)). In query SELECT pow(3, 2) PREWHERE toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 404 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 405 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 406 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 407 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 408 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 409 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 410 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 411 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 412 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 413 out of 1000 EXPLAIN `header, description` = true, json = true SELECT pow(2) Error on processing query 'EXPLAIN `header, description` = true, json = true SELECT pow(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 414 out of 1000 SELECT pow(toNullable(3), 2) Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 417 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 418 out of 1000 SELECT pow(3, toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 2) Error on processing query 'SELECT pow(3, toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(3, toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 419 out of 1000 SELECT pow(3, toUInt256(2)) Error on processing query 'SELECT pow(3, toUInt256(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT pow(3, toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 420 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 421 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 422 out of 1000 SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 424 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 425 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 426 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 427 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(materialize(3), 2) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 428 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 430 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 431 out of 1000 SELECT pow(3, materialize(2)) Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 433 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 434 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 436 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 437 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 438 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 440 out of 1000 EXPLAIN SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT pow(3, 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT pow(3, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('pow'): pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 442 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 443 out of 1000 EXPLAIN SELECT pow(3, 2) Got boring AST Fuzzing step 444 out of 1000 EXPLAIN AST SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT pow(3, 2) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 448 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 449 out of 1000 SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 451 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 452 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 454 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 455 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 456 out of 1000 SELECT pow(materialize(3), toLowCardinality(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT pow(materialize(materialize(3)), toLowCardinality(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 SELECT pow(materialize(3), toLowCardinality(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT pow(materialize(3), toLowCardinality(toNullable(2))) Got boring AST Fuzzing step 460 out of 1000 SELECT pow(materialize(3), toLowCardinality(toNullable(2))) Got boring AST Fuzzing step 461 out of 1000 SELECT pow(3, toLowCardinality(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT pow(3, toLowCardinality(toNullable(2))) Got boring AST Fuzzing step 463 out of 1000 SELECT pow(3, toLowCardinality(toNullable(2))) Got boring AST Fuzzing step 464 out of 1000 SELECT pow(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 466 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 467 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 468 out of 1000 SELECT pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 469 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 471 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 472 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 473 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 474 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 475 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 476 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 477 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 478 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 479 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 480 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 481 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 482 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 483 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 484 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 485 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 486 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 487 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 488 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 489 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 490 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 491 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 492 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 493 out of 1000 SELECT toDateTime(time.2), pow(3, 2) Error on processing query 'SELECT toDateTime(time.2), pow(3, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toDateTime(time.2), pow(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 494 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 495 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 496 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), pow(time, 3, 2) Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), pow(time, 3, 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), pow(time, 3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 498 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Got boring AST Fuzzing step 499 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Got boring AST Fuzzing step 500 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Got boring AST Fuzzing step 501 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', pow(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 3, 2) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', pow(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', pow(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 503 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', pow(3, 2) Got boring AST Fuzzing step 504 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) Got boring AST Fuzzing step 506 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) Got boring AST Fuzzing step 507 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 512 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 513 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 514 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 516 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) GROUP BY toUInt256(57), POW(3, toUInt256(2)) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) GROUP BY toUInt256(57), POW(3, toUInt256(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) GROUP BY toUInt256(57), POW(3, toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 517 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, toLowCardinality(2)) Got boring AST Fuzzing step 518 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toLowCardinality(0), '01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toLowCardinality(0), '01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toLowCardinality(0), '01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 520 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Got boring AST Fuzzing step 521 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Got boring AST Fuzzing step 522 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 EXPLAIN PIPELINE SELECT materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), pow(toLowCardinality(toNullable(3)), POWER(POW(3, 2)), 2) Error on processing query 'EXPLAIN PIPELINE SELECT materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), pow(toLowCardinality(toNullable(3)), POWER(POW(3, 2)), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), pow(toLowCardinality(toNullable(3)), POWER(POW(3, 2)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 524 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(3, 2) Got boring AST Fuzzing step 525 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 3, 2) Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), pow(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 526 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 528 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 529 out of 1000 SELECT pow(3, 2) PREWHERE POW(3, 2) Error on processing query 'SELECT pow(3, 2) PREWHERE POW(3, 2)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 530 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 531 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 532 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 533 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 534 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 535 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 536 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 537 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 538 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 539 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 540 out of 1000 EXPLAIN PIPELINE header = true SELECT pow(3, 2) Error on processing query 'EXPLAIN PIPELINE header = true SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 541 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 543 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 546 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 547 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 548 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 549 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 550 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, 2) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 553 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 555 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 556 out of 1000 EXPLAIN PIPELINE SELECT pow(3, 2) Got boring AST Fuzzing step 557 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 EXPLAIN AST SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 EXPLAIN AST SELECT pow(3, 2) Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST SELECT pow(3, 2) Got boring AST Fuzzing step 561 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 562 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Got boring AST Fuzzing step 564 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Got boring AST Fuzzing step 565 out of 1000 EXPLAIN SYNTAX SELECT pow(3, 2) Got boring AST Fuzzing step 566 out of 1000 EXPLAIN AST SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, 2) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 EXPLAIN AST SELECT pow(3, 2) Got boring AST Fuzzing step 569 out of 1000 EXPLAIN SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 572 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 573 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 574 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 575 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 576 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 577 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 578 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 579 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT pow(3, 2) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 581 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 582 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 583 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 584 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 585 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 586 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 587 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 588 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 589 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 590 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 591 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 592 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 593 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 594 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 595 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 596 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 597 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 598 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 599 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 600 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 601 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 602 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 603 out of 1000 SELECT pow(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 605 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 606 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 607 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 608 out of 1000 SELECT pow(3, toNullable(2)) Got boring AST Fuzzing step 609 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT pow(toNullable(3), 2) Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT pow(toNullable(3), 2) Got boring AST Fuzzing step 612 out of 1000 SELECT pow(toNullable(3), 2) Got boring AST Fuzzing step 613 out of 1000 SELECT pow(toNullable(3), 2) Got boring AST Fuzzing step 614 out of 1000 EXPLAIN PIPELINE compact = true SELECT pow(toNullable(3), 2) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT pow(toNullable(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 615 out of 1000 SELECT pow(toNullable(POWER(3, materialize(2)), 3), 2) Error on processing query 'SELECT pow(toNullable(POWER(3, materialize(2)), 3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT pow(toNullable(POWER(3, materialize(2)), 3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 616 out of 1000 SELECT pow(toNullable(3), 2) Got boring AST Fuzzing step 617 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 619 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 620 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 621 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 622 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 623 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 624 out of 1000 SELECT pow(3, 2) PREWHERE toNullable(toLowCardinality(materialize(3))) Error on processing query 'SELECT pow(3, 2) PREWHERE toNullable(toLowCardinality(materialize(3)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 625 out of 1000 EXPLAIN PIPELINE compact = true SELECT pow(3, 2) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 626 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 628 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 629 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 630 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 631 out of 1000 SELECT pow(materialize(toLowCardinality(3)), 2) Got boring AST Fuzzing step 632 out of 1000 EXPLAIN AST SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 EXPLAIN ESTIMATE SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 EXPLAIN ESTIMATE SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 635 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT pow(materialize(3), 2) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT pow(materialize(3), 2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('pow'): pow(materialize(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 636 out of 1000 EXPLAIN ESTIMATE SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 637 out of 1000 EXPLAIN SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 640 out of 1000 SELECT pow(materialize(3), 2) GROUP BY POWER(toLowCardinality(3), 2), POWER(POW(materialize(3), materialize(2)), toUInt256(2)) Error on processing query 'SELECT pow(materialize(3), 2) GROUP BY POWER(toLowCardinality(3), 2), POWER(POW(materialize(3), materialize(2)), toUInt256(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT pow(materialize(3), 2) GROUP BY POWER(toLowCardinality(3), 2), POWER(POW(materialize(3), materialize(2)), toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 641 out of 1000 SELECT pow(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, materialize(3), 2) Error on processing query 'SELECT pow(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, materialize(3), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 642 out of 1000 SELECT pow(3, 2) GROUP BY toString(57, POWER(3, 2), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) Error on processing query 'SELECT pow(3, 2) GROUP BY toString(57, POWER(3, 2), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(3, 2) GROUP BY toString(57, POWER(3, 2), time), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 643 out of 1000 SELECT pow(toLowCardinality(toUInt256(2)), materialize(3), 2) Error on processing query 'SELECT pow(toLowCardinality(toUInt256(2)), materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(toLowCardinality(toUInt256(2)), materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 644 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 645 out of 1000 EXPLAIN PIPELINE compact = true SELECT pow(materialize(3), 2) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT pow(materialize(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 646 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 648 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 649 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 650 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 651 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 652 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 653 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 654 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 655 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 656 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 657 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 658 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 659 out of 1000 SELECT pow(3) Error on processing query 'SELECT pow(3)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 660 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 661 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 662 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 663 out of 1000 SELECT pow(3, materialize(2)) Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 665 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 666 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 667 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 668 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 669 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 670 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 671 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 672 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 673 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 674 out of 1000 SELECT pow(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(3), materialize(2)) Error on processing query 'SELECT pow(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(3), materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), toNullable(3), materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 676 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 677 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 678 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 679 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 680 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 681 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 682 out of 1000 SELECT pow(3, materialize(2)) Got boring AST Fuzzing step 683 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 685 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 686 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 687 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 688 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 689 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 690 out of 1000 SELECT pow(3, 2) WHERE toLowCardinality(toUInt128(3)) Error on processing query 'SELECT pow(3, 2) WHERE toLowCardinality(toUInt128(3))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 691 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 692 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 693 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 694 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 695 out of 1000 SELECT pow(3, 2) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'SELECT pow(3, 2) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(3, 2) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 696 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 697 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 698 out of 1000 SELECT pow(3, 2) WHERE POWER(toNullable(2), 3) Error on processing query 'SELECT pow(3, 2) WHERE POWER(toNullable(2), 3)': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 699 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 700 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 701 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 702 out of 1000 SELECT pow(toLowCardinality(3), 2) Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT pow(3, 2) Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 705 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 706 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 707 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 708 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 709 out of 1000 SELECT pow(3, 2) Got boring AST Fuzzing step 710 out of 1000 SELECT pow(materialize(3), 2) Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 712 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 713 out of 1000 SELECT toString(57, POWER(3, 2), time), pow(materialize(3), 2) Error on processing query 'SELECT toString(57, POWER(3, 2), time), pow(materialize(3), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toString(57, POWER(3, 2), time), pow(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 715 out of 1000 SELECT pow(materialize(3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, toUInt256(57), POWER(POW(3, toLowCardinality(toNullable(3), toNullable(toUInt256(2))))), time)), 2) Error on processing query 'SELECT pow(materialize(3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, toUInt256(57), POWER(POW(3, toLowCardinality(toNullable(3), toNullable(toUInt256(2))))), time)), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(materialize(3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, toUInt256(57), POWER(POW(3, toLowCardinality(toNullable(3), toNullable(toUInt256(2))))), time)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 716 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 717 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 718 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 719 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 720 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 721 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 722 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 723 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 724 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 725 out of 1000 SELECT pow(materialize(3), 2) Got boring AST Fuzzing step 726 out of 1000 SELECT pow(materialize(3), 2) GROUP BY materialize(toUInt256(toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT pow(materialize(3), 2) WHERE pow(pow(3, 2), toNullable(3), 2) GROUP BY materialize(toUInt256(toUInt128(3))) Error on processing query 'SELECT pow(materialize(3), 2) WHERE pow(pow(3, 2), toNullable(3), 2) GROUP BY materialize(toUInt256(toUInt128(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(materialize(3), 2) WHERE pow(pow(3, 2), toNullable(3), 2) GROUP BY materialize(toUInt256(toUInt128(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 728 out of 1000 SELECT pow(materialize(3), 2) GROUP BY materialize(toUInt256(toUInt128(3))) Got boring AST Fuzzing step 729 out of 1000 EXPLAIN QUERY TREE passes = true SELECT pow(materialize(3), 2) GROUP BY toUInt256(toUInt128(3)) Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT pow(materialize(3), 2) GROUP BY toUInt256(toUInt128(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 730 out of 1000 SELECT pow(3, 2) GROUP BY materialize(toUInt256(toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT pow(3, 2) GROUP BY materialize(toUInt256(3)) Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT pow(3, 2) WITH TOTALS Error on processing query 'SELECT pow(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 733 out of 1000 SELECT pow(3, 2) GROUP BY materialize(toUInt256(3)) Got boring AST Fuzzing step 734 out of 1000 SELECT pow(3, toNullable(2)) GROUP BY materialize(toUInt256(3)) Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT pow(toUInt128(3), toNullable(2)) GROUP BY materialize(toUInt256(3)) Error on processing query 'SELECT pow(toUInt128(3), toNullable(2)) GROUP BY materialize(toUInt256(3))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT pow(toUInt128(3), toNullable(2)) GROUP BY materialize(toUInt256(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 736 out of 1000 SELECT pow(3, toNullable(2)) GROUP BY materialize(toUInt256(3)) Got boring AST Fuzzing step 737 out of 1000 SELECT pow(3, toNullable(2)) GROUP BY materialize(toUInt256(3)) Got boring AST Fuzzing step 738 out of 1000 SELECT pow(3, toNullable(toNullable(2))) GROUP BY materialize(toUInt256(3)) Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT pow(materialize(toNullable(3)), toNullable(toNullable(2))) GROUP BY materialize(toUInt256(3)) Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT pow(toNullable(3), toNullable(toNullable(2))) GROUP BY materialize(toUInt256(toNullable(toUInt128(3)))) Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT pow(toNullable(3), toNullable(toNullable(2))) GROUP BY toUInt256(toNullable(toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT pow(toNullable(3), toNullable(toNullable(2))) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT pow(toNullable(3), toNullable(57), toNullable(toNullable(2))) GROUP BY toNullable(3) WITH ROLLUP Error on processing query 'SELECT pow(toNullable(3), toNullable(57), toNullable(toNullable(2))) GROUP BY toNullable(3) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(toNullable(3), toNullable(57), toNullable(toNullable(2))) GROUP BY toNullable(3) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 744 out of 1000 SELECT pow(toNullable(3), toNullable(2)) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT pow(toNullable(3), toNullable(2)) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Got boring AST Fuzzing step 746 out of 1000 SELECT pow(toNullable(3), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT pow(toNullable(3), 2) GROUP BY toUInt256(toNullable(materialize(3))) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT pow(toNullable(3), 2) GROUP BY toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3))) WITH ROLLUP Error on processing query 'SELECT pow(toNullable(3), 2) GROUP BY toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3))) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(toNullable(3), 2) GROUP BY toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3))) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 749 out of 1000 EXPLAIN PIPELINE SELECT pow(toNullable(3), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 EXPLAIN PIPELINE SELECT pow(toNullable(3), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Got boring AST Fuzzing step 751 out of 1000 SELECT toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), pow(toNullable(3), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), pow(toNullable(3), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Got boring AST Fuzzing step 753 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Got boring AST Fuzzing step 755 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Got boring AST Fuzzing step 756 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Got boring AST Fuzzing step 757 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(3, 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Got boring AST Fuzzing step 758 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(materialize(toLowCardinality(3)), pow(3, 2), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(materialize(toLowCardinality(3)), pow(3, 2), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), pow(materialize(toLowCardinality(3)), pow(3, 2), 2) GROUP BY toUInt256(toNullable(3)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 759 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, materialize(toNullable(2))) GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, materialize(2)) GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, pow(3, 2) GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 764 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 765 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE toString(2, 57, POWER(POW(3, toUInt256(2))), time) GROUP BY toNullable(3) WITH ROLLUP Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE toString(2, 57, POWER(POW(3, toUInt256(2))), time) GROUP BY toNullable(3) WITH ROLLUP': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE toString(2, 57, POWER(POW(3, toUInt256(2))), time) GROUP BY toNullable(3) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 766 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 767 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toNullable(3))) WITH ROLLUP Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toNullable(3))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 768 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 769 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 770 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 771 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 772 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 773 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 774 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toNullable(3))) WITH ROLLUP Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toNullable(3))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 775 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 776 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 777 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 778 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 779 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 780 out of 1000 EXPLAIN PIPELINE compact = true SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY toNullable(3) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY toNullable(3) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 781 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 782 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 783 out of 1000 SELECT materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 785 out of 1000 SELECT materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 786 out of 1000 SELECT materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 787 out of 1000 SELECT materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 788 out of 1000 SELECT tupleElement(time, 1), materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Error on processing query 'SELECT tupleElement(time, 1), materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT time.1, materialize(2), '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 789 out of 1000 SELECT 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT power(materialize(materialize(3)), 2), toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT power(materialize(materialize(3)), 2), toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY toNullable(3) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 SELECT power(materialize(materialize(3)), 2), toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY toNullable(3) WITH ROLLUP Got boring AST Fuzzing step 794 out of 1000 SELECT power(materialize(materialize(3)), 2), toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT power(materialize(materialize(3)), 2), toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY 3 WITH ROLLUP Got boring AST Fuzzing step 796 out of 1000 SELECT power(materialize(materialize(3)), 2), toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT power(materialize(3), 2), toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 SELECT power(materialize(3), 2), toUInt128(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Got boring AST Fuzzing step 801 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Got boring AST Fuzzing step 802 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 WITH ROLLUP Got boring AST Fuzzing step 803 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 805 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE toDateTime(tupleElement(time, toLowCardinality(1))) GROUP BY 3 Error on processing query 'SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE toDateTime(tupleElement(time, toLowCardinality(1))) GROUP BY 3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE toDateTime(tupleElement(time, toLowCardinality(1))) GROUP BY 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 806 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 807 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 808 out of 1000 SELECT power(3, 2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE POWER(POW(3, toNullable(toUInt256(2)))) GROUP BY 3 Error on processing query 'SELECT power(3, 2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE POWER(POW(3, toNullable(toUInt256(2)))) GROUP BY 3': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(3, 2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57 PREWHERE POWER(POW(3, toNullable(toUInt256(2)))) GROUP BY 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 809 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 810 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 811 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 812 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 813 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 814 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 815 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY 3 Got boring AST Fuzzing step 816 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 818 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 819 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 820 out of 1000 SELECT power(3, 2), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 821 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 823 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 824 out of 1000 SELECT power(3, 2), 3, toUInt128(2), toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT power(3, 2), 3, toUInt128(2), toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 826 out of 1000 SELECT power(3, 2), 3, toUInt128(2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality(toLowCardinality(3), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT power(3, 2), 3, 2, toLowCardinality(toLowCardinality(3), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT power(3, 2), 3, 2, toLowCardinality(toLowCardinality(3), '01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 828 out of 1000 SELECT power(3, 2), 3, toUInt128(2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((materialize(3))) Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT power(3, 2), 3, toUInt128(2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 832 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 833 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 834 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 835 out of 1000 SELECT power(3, 2), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 836 out of 1000 SELECT power(3, materialize(2)), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT power(materialize(2)), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) PREWHERE POWER(3, 2) GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT power(materialize(2)), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) PREWHERE POWER(3, 2) GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(materialize(2)), 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toLowCardinality(57)) PREWHERE POWER(3, 2) GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 838 out of 1000 SELECT 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT 3, 2, toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 840 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 842 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 843 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 844 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 57) GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 57) GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 57) GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 845 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 847 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 848 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 849 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toLowCardinality(3))) Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY GROUPING SETS ((toLowCardinality(3))) Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY GROUPING SETS ((toLowCardinality(3))) Got boring AST Fuzzing step 852 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toLowCardinality(3))) Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toLowCardinality(3))) Got boring AST Fuzzing step 854 out of 1000 SELECT materialize(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toLowCardinality(3))) Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT materialize(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toLowCardinality(3))) Got boring AST Fuzzing step 856 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 858 out of 1000 SELECT toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 SELECT toNullable(toUInt128(3)), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 SELECT toNullable(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 864 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 865 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 866 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 867 out of 1000 EXPLAIN AST SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 870 out of 1000 EXPLAIN AST SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 EXPLAIN AST SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 872 out of 1000 EXPLAIN AST SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 873 out of 1000 EXPLAIN AST SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 874 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 876 out of 1000 SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 877 out of 1000 SELECT 3, 2, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT 3, 2, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 879 out of 1000 SELECT 3, 2, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 880 out of 1000 SELECT 3, 2, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 WHERE pow(toNullable(3), toNullable(2)) GROUP BY GROUPING SETS ((toUInt128(3))) Error on processing query 'SELECT 3, 2, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 WHERE pow(toNullable(3), toNullable(2)) GROUP BY GROUPING SETS ((toUInt128(3)))': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 881 out of 1000 SELECT 3, 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 SELECT 3, 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 883 out of 1000 SELECT 3, 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT 3, 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 885 out of 1000 EXPLAIN PIPELINE header = true SELECT 3, 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((3)) Error on processing query 'EXPLAIN PIPELINE header = true SELECT 3, 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57 GROUP BY GROUPING SETS ((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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 886 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT toLowCardinality(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT toLowCardinality(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 889 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 891 out of 1000 SELECT 3, 2 GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT 3, 2 GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, 2 GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 892 out of 1000 SELECT toUInt128(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(3))) Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT toUInt128(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(3))) Got boring AST Fuzzing step 894 out of 1000 SELECT toUInt128(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(3))) Got boring AST Fuzzing step 895 out of 1000 SELECT toUInt128(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT toUInt128(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 897 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 899 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 900 out of 1000 SELECT 3, 2 GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT 3, 2 GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, 2 GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 901 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57) GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57) GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(57)). In query SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE toFixedString(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57) GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 902 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 903 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 904 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 905 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Got boring AST Fuzzing step 907 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Got boring AST Fuzzing step 908 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Got boring AST Fuzzing step 909 out of 1000 SELECT toNullable(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) GROUP BY GROUPING SETS ((materialize(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)), 3)))) Error on processing query 'SELECT toNullable(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) GROUP BY GROUPING SETS ((materialize(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)), 3))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable(3), 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 WHERE materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) GROUP BY GROUPING SETS ((materialize(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)), 3)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 910 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Got boring AST Fuzzing step 911 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Got boring AST Fuzzing step 912 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) PREWHERE toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY GROUPING SETS ((toLowCardinality(3))) Error on processing query 'SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) PREWHERE toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY GROUPING SETS ((toLowCardinality(3)))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(57). In query SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) PREWHERE toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) GROUP BY GROUPING SETS ((toLowCardinality(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 914 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Got boring AST Fuzzing step 915 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY GROUPING SETS ((materialize(toLowCardinality(3)))) Got boring AST Fuzzing step 916 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57) GROUP BY GROUPING SETS ((materialize(toLowCardinality(toLowCardinality(toUInt128(3)))))) Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT 3, 2, '01473_metric_log_table_event_start_time_microseconds_test', 57 GROUP BY GROUPING SETS ((materialize(toLowCardinality(toLowCardinality(toUInt128(3)))))) Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 SELECT 3, 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57 GROUP BY GROUPING SETS ((toLowCardinality(toLowCardinality(toUInt128(3))))) Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 SELECT 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3)))) Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3)))) Error on processing query 'SELECT 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test')), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 921 out of 1000 SELECT 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 PREWHERE pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(3))) Error on processing query 'SELECT 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 PREWHERE pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 2, toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 PREWHERE pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 922 out of 1000 SELECT 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3)))) Got boring AST Fuzzing step 923 out of 1000 SELECT 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3)))) Got boring AST Fuzzing step 924 out of 1000 SELECT 2, toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3)))) Got boring AST Fuzzing step 925 out of 1000 SELECT 2, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY GROUPING SETS ((toLowCardinality(toUInt128(3)))) Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT 2, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT 2, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 928 out of 1000 SELECT 2, toNullable(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT 2, toNullable(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 930 out of 1000 SELECT 2, toNullable(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY GROUPING SETS ((toUInt128(3))) Got boring AST Fuzzing step 931 out of 1000 SELECT 2, toNullable(3), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT 2, toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT 2, toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 934 out of 1000 SELECT 2, toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 935 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 937 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 938 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 939 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 940 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 941 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 942 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 943 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY 3 Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY 3 Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY 3 Got boring AST Fuzzing step 947 out of 1000 SELECT materialize(toLowCardinality(2)), toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY 3 Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT materialize(toLowCardinality(2)), toNullable(3), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, materialize('ok'), toString(time)), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY 3 Error on processing query 'SELECT materialize(toLowCardinality(2)), toNullable(3), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, materialize('ok'), toString(time)), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY 3': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(toLowCardinality(2)), toNullable(3), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, materialize('ok'), toString(time)), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY 3. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 949 out of 1000 SELECT materialize(toLowCardinality(2)), toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY 3 Got boring AST Fuzzing step 950 out of 1000 SELECT materialize(toLowCardinality(2)), toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 954 out of 1000 SELECT materialize(toLowCardinality(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 955 out of 1000 SELECT materialize(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), 2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Error on processing query 'SELECT materialize(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), 2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((toUInt256(3)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), 2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 956 out of 1000 SELECT materialize(toLowCardinality(2)), 3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT materialize(power(toNullable(toUInt256(2), 3), toNullable(2)), 2), 3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Error on processing query 'SELECT materialize(power(toNullable(toUInt256(2), 3), toNullable(2)), 2), 3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY GROUPING SETS ((toUInt256(3)))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT materialize(power(toNullable(toUInt256(2), 3), toNullable(2)), 2), 3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 958 out of 1000 SELECT materialize(toLowCardinality(2)), 3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 959 out of 1000 SELECT materialize(2), 3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57 GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 EXPLAIN ESTIMATE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt25. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 963 out of 1000 EXPLAIN ESTIMATE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 964 out of 1000 EXPLAIN ESTIMATE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN ESTIMATE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 966 out of 1000 EXPLAIN ESTIMATE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 967 out of 1000 EXPLAIN ESTIMATE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 968 out of 1000 EXPLAIN AST SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 EXPLAIN AST SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 970 out of 1000 EXPLAIN AST SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 971 out of 1000 EXPLAIN AST SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 972 out of 1000 EXPLAIN AST SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 973 out of 1000 EXPLAIN AST SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 974 out of 1000 EXPLAIN PIPELINE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 EXPLAIN PIPELINE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 976 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 977 out of 1000 EXPLAIN PIPELINE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 978 out of 1000 EXPLAIN PIPELINE SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 979 out of 1000 EXPLAIN SYNTAX SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 EXPLAIN SYNTAX SELECT materialize(2), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Got boring AST Fuzzing step 981 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((toUInt256(3))) Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT 2, 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 984 out of 1000 SELECT materialize(toNullable(toUInt256(2))), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT materialize(toNullable(toUInt256(2))), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 986 out of 1000 SELECT materialize(toNullable(toUInt256(2))), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 987 out of 1000 SELECT materialize(toNullable(toUInt256(2))), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 988 out of 1000 SELECT materialize(toUInt256(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT materialize(toUInt256(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 990 out of 1000 SELECT materialize(toUInt256(2)), 3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Got boring AST Fuzzing step 991 out of 1000 SELECT materialize(toUInt256(2)), materialize(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT materialize(toUInt256(2)), materialize(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toLowCardinality(toString(2, toNullable(toUInt128(57)), POWER(2, toUInt256(3)), time), 57) GROUP BY GROUPING SETS ((3)) Error on processing query 'SELECT materialize(toUInt256(2)), materialize(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toLowCardinality(toString(2, toNullable(toUInt128(57)), POWER(2, toUInt256(3)), time), 57) GROUP BY GROUPING SETS ((3))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT materialize(toUInt256(2)), materialize(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toLowCardinality(toString(2, toNullable(toUInt128(57)), POWER(2, toUInt256(3)), time), 57) GROUP BY GROUPING SETS ((3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 993 out of 1000 SELECT toUInt256(2), materialize(materialize(toNullable(toUInt128(3)))), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toLowCardinality(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT toUInt256(2), materialize(materialize(toNullable(toUInt128(3)))), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toNullable(57), 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 SELECT toUInt256(2), materialize(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), toNullable(57), 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 SELECT toUInt256(2), materialize(toNullable(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), toNullable(57), 57 GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 SELECT toUInt256(2), materialize(toNullable(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), toNullable(57), materialize(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT 2, materialize(toNullable(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), 57, materialize(57) GROUP BY GROUPING SETS ((3)) Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT 2, materialize(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, materialize(57) GROUP BY GROUPING SETS ((3)) 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 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)) Got boring AST Fuzzing step 4 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 6 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 7 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 10 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 11 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 12 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(POWER(toNullable(toNullable(3)), materialize(materialize(2))), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(POWER(toNullable(toNullable(3)), materialize(materialize(2))), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(POWER(toNullable(toNullable(3)), materialize(materialize(2))), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 13 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY 'ok' ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(materialize(toNullable(3))), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY 'ok' ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(materialize(toNullable(3))), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY 'ok' ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(materialize(toNullable(3))), time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945e4f 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 14 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 15 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(toNullable(materialize(3))) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(toNullable(materialize(3))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(toNullable(materialize(3))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 16 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 17 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 18 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize('01473_trace_log_table_event_start_time_microseconds_test', 56) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize('01473_trace_log_table_event_start_time_microseconds_test', 56) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable(2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize('01473_trace_log_table_event_start_time_microseconds_test', 56) ASC, event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 19 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(1))))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(1))))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(1))))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 20 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable('01473_trace_log_table_event_start_time_microseconds_test') Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable('01473_trace_log_table_event_start_time_microseconds_test')': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(String). In query WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable('01473_trace_log_table_event_start_time_microseconds_test'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 21 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY currentDatabase(), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = toUInt128(0), toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), materialize(toLowCardinality(toUInt256(toUInt128(3)))), POW(3, materialize(2)) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY currentDatabase(), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = toUInt128(0), toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), materialize(toLowCardinality(toUInt256(toUInt128(3)))), POW(3, materialize(2)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY currentDatabase(), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(toUInt256(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = toUInt128(0), toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), materialize(toLowCardinality(toUInt256(toUInt128(3)))), POW(3, materialize(2)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 22 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 23 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE POWER(materialize(2), 3) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE POWER(materialize(2), 3) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Illegal type Float64 of column for filter. Must be UInt8 or Nullable(UInt8) or Const variants of them.: While executing MergeTreeSelect(pool: ReadPoolInOrder, algorithm: InOrder). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000190d5ca9 5. ./contrib/boost/boost/smart_ptr/detail/operator_bool.hpp:14: DB::FilterWithCachedCount::FilterWithCachedCount(COW::immutable_ptr const&) @ 0x0000000019c34982 6. ./build_docker/./src/Storages/MergeTree/MergeTreeRangeReader.cpp:0: DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) const @ 0x0000000019c3256b 7. ./build_docker/./src/Storages/MergeTree/MergeTreeRangeReader.cpp:0: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x0000000019c2f7cc 8. ./build_docker/./src/Storages/MergeTree/MergeTreeRangeReader.cpp:0: DB::MergeTreeRangeReader::read(unsigned long, DB::MarkRanges&) @ 0x0000000019c2e123 9. ./build_docker/./src/Storages/MergeTree/MergeTreeReadTask.cpp:165: DB::MergeTreeReadTask::read(DB::MergeTreeReadTask::BlockSizeParams const&) @ 0x0000000019c5e10b 10. ./src/Storages/MergeTree/MergeTreeSelectAlgorithms.h:53: DB::MergeTreeInOrderSelectAlgorithm::readFromTask(DB::MergeTreeReadTask&, DB::MergeTreeReadTask::BlockSizeParams const&) @ 0x000000001a9d5b2a 11. ./build_docker/./src/Storages/MergeTree/MergeTreeSelectProcessor.cpp:0: DB::MergeTreeSelectProcessor::read() @ 0x0000000019c58cb2 12. ./build_docker/./src/Storages/MergeTree/MergeTreeSource.cpp:180: DB::MergeTreeSource::tryGenerate() @ 0x000000001a9b5977 13. ./contrib/llvm-project/libcxx/include/optional:344: DB::ISource::work() @ 0x000000001a32936b 14. ./contrib/llvm-project/libcxx/include/list:588: DB::ExecutionThreadContext::executeTask() @ 0x000000001a34c10a 15. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:273: DB::PipelineExecutor::executeStepImpl(unsigned long, std::atomic*) @ 0x000000001a33d683 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::PipelineExecutor::executeImpl(unsigned long, bool) @ 0x000000001a33cc6c 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:274: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c95f 18. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 19. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 24 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 26 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 27 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)))) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)))) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)))) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 28 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(POW(materialize(3)), current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 7 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POWER(POW(3, 2), 2, materialize(materialize(3))), time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(POW(materialize(3)), current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 7) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POWER(POW(3, 2), 2, materialize(materialize(3))), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(POW(materialize(3)), current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 7) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 29 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483646 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483646) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 30 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Got boring AST Fuzzing step 32 out of 1000 WITH ( SELECT event_time_microseconds, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope (SELECT event_time_microseconds, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 33 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Got boring AST Fuzzing step 34 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 37 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, 2), 2), time), power(3, toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, 2), 2), time), power(3, toNullable(2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 4 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, 2), 2), time), power(3, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 38 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), if(equals(POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 0), toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), toNullable(0)), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), if(equals(POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 0), toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), toNullable(0)), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), if(equals(POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), toNullable(0)), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 39 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toNullable(0)), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(toNullable(0)), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(toNullable(0)), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 40 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 41 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toString(2, 57, POWER(POW(3, 2), 2), time), currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(materialize(0)), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toString(2, 57, POWER(POW(3, 2), 2), time), currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(materialize(0)), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toString(2, 57, POWER(POW(3, 2), 2), time), currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 43 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 44 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', toUInt128(2)), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', toUInt128(2)), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 45 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Got boring AST Fuzzing step 47 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Got boring AST Fuzzing step 48 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT NULL ) AS time SELECT toLowCardinality(materialize(toUInt128(3))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT NULL) AS time SELECT toLowCardinality(materialize(toUInt128(3))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual NULL. In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT NULL) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x0000000007b6672c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f3938 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 49 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Got boring AST Fuzzing step 50 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 52 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 54 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 56 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 57 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 58 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 59 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 60 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 61 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 63 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 66 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 68 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 69 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 70 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 72 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 74 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 76 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 77 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)) PREWHERE pow(toLowCardinality(3), toLowCardinality(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)) PREWHERE pow(toLowCardinality(3), toLowCardinality(2))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)) PREWHERE pow(toLowCardinality(3), toLowCardinality(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 79 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 80 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 2147483648) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 82 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(POWER(3, toNullable(2))) ORDER BY event_time ASC NULLS LAST LIMIT 9223372036854775807 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(POWER(3, toNullable(2))) ORDER BY event_time ASC NULLS LAST LIMIT 9223372036854775807) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(POWER(3, toNullable(2))) ORDER BY event_time ASC NULLS LAST LIMIT 9223372036854775807) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 84 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 85 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 2147483648) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 86 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -2147483649 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, toNullable('ok'), toLowCardinality(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -2147483649) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, toNullable('ok'), toLowCardinality(2), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 87 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(100, 'second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = toUInt256(0), toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(100, 'second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = toUInt256(0), toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: UInt8: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(100, 'second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = toUInt256(0), toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 88 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 89 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toLowCardinality(toNullable(2)), currentDatabase()) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), time, 1)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toLowCardinality(toNullable(2)), currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), time, 1)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toLowCardinality(toNullable(2)), currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 90 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toLowCardinality(2)), toString(time)) Got boring AST Fuzzing step 91 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable(toFixedString('ok', 2)), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable(toFixedString('ok', 2)), 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 93 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, tupleElement(time)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, tupleElement(time)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, tupleElement(time)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 94 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, toNullable('ok'), 2, toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, toNullable('ok'), 2, toString(time))': Received from localhost:9000. DB::Exception: Wrong number of arguments for function 'if' (4 instead of 3): While processing if(dateDiff('second', toDateTime((__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time).1)) = 0, toNullable('ok'), 2, toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, toNullable('ok'), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x0000000009321840 4. ./build_docker/./src/Interpreters/OptimizeIfWithConstantConditionVisitor.cpp:87: DB::OptimizeIfWithConstantConditionVisitorData::visit(DB::ASTFunction&, std::shared_ptr&) @ 0x00000000181c5c34 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&) @ 0x000000001819e3ff 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&) @ 0x000000001819e55b 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&) @ 0x000000001819e550 8. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeOptimizer::optimizeIf(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, bool, bool) @ 0x00000000181957d6 9. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1412: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001817f13d 10. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 11. ./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) @ 0x0000000017daa783 12. ./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) @ 0x0000000017da634c 13. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 15. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 16. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 17. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 96 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 WITH ( SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 257 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 257) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 98 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(materialize(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(materialize(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(materialize(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 99 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toFixedString('ok', toNullable(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf Fuzzing step 101 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Got boring AST Fuzzing step 103 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) PREWHERE POW(3, toLowCardinality(toUInt256(2))) WHERE tupleElement(time, toUInt256(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) PREWHERE POW(3, toLowCardinality(toUInt256(2))) WHERE tupleElement(time, toUInt256(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) PREWHERE POW(3, toLowCardinality(toUInt256(2))) WHERE tupleElement(time, toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 104 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 105 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY POWER(POW(3, 2), toLowCardinality(2)), toLowCardinality(3) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY POWER(POW(3, 2), toLowCardinality(2)), toLowCardinality(3) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time))': Received from localhost:9000. DB::Exception: Column system.query_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY POWER(POW(3, 2), toLowCardinality(2)), toLowCardinality(3) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 106 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Got boring AST Fuzzing step 107 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 109 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 112 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(materialize(toNullable(2)))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(materialize(toNullable(2)))), toString(time))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(materialize(toNullable(2)))), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e423cb0 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 113 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2147483649 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2147483649) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 114 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toNullable(2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 115 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toNullable(2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 116 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY pow(3, toLowCardinality(materialize(2))), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time), toString(toUInt128(57), POWER(3, 2), time) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY pow(3, toLowCardinality(materialize(2))), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time), toString(toUInt128(57), POWER(3, 2), time)': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY pow(3, toLowCardinality(materialize(2))), if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), toString(2, 57, POWER(POW(3, 2), 2, materialize(materialize(3))), time), toString(toUInt128(57), POWER(3, 2), time). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 117 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(toUInt128(2), 57, POWER(2, 3, 2), time), toDateTime(time.2), pow(3, 2), toNullable(toUInt128(57)) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(toLowCardinality(toUInt128(0))), toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(toUInt128(2), 57, POWER(2, 3, 2), time), toDateTime(time.2), pow(3, 2), toNullable(toUInt128(57)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(toLowCardinality(toUInt128(0))), toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(toUInt128(2), 57, POWER(2, 3, 2), time), toDateTime(time.2), pow(3, 2), toNullable(toUInt128(57)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 118 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 120 out of 1000 WITH ( SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: Cannot parse string '01473_metric_log_table_event_start_time_microseconds_test' as DateTime: syntax error at position 5 (parsed just '01473'): In scope WITH (SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::(anonymous namespace)::throwExceptionForIncompletelyParsedValue(DB::ReadBuffer&, DB::IDataType const&) @ 0x0000000007770ec0 4. 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&&) @ 0x000000000795cae1 5. DB::(anonymous namespace)::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007944c16 6. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007615264 7. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 8. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 9. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087150be 10. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 11. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 12. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506e7f 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 121 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(power(toNullable(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(power(toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(power(toNullable(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a55cf 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 122 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 123 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, POWER(3, toNullable(2)), 1)), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, POWER(3, toNullable(2)), 1)), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, POWER(3, toNullable(2)), 1)), toDateTime(time.2)) = materialize(0), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 124 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 126 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)), time, 2))) = 0, toFixedString(materialize(toFixedString('ok', 2)), toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)), time, 2))) = 0, toFixedString(materialize(toFixedString('ok', 2)), toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)), time, 2))) = 0, toFixedString(materialize(toFixedString('ok', 2)), toNullable(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 127 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 128 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(toLowCardinality(2))), 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -2147483648) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(toLowCardinality(2))), 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 129 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(3)), 2))) = materialize(0), toFixedString('ok', toNullable(toLowCardinality(2))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(3)), 2))) = materialize(0), toFixedString('ok', toNullable(toLowCardinality(2))), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(3)), 2))) = materialize(0), toFixedString('ok', toNullable(toLowCardinality(2))), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 130 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toNullable(2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 131 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 132 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 134 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 135 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 136 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toNullable(2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 137 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(toNullable(3), 2), 2, materialize(3)), time))) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(materialize(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(toNullable(3), 2), 2, materialize(3)), time))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(materialize(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(toNullable(3), 2), 2, materialize(3)), time))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 29. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 138 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 139 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toNullable(2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toNullable(2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 140 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 141 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 142 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 143 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 144 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) Got boring AST Fuzzing step 145 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(toUInt256(materialize(toNullable(3)))), POWER(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', toNullable(2)), toString(time)) GROUP BY toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(toUInt256(materialize(toNullable(3)))), POWER(3, toLowCardinality(2)) Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(57, POWER(3, materialize(2)), time) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(materialize(toNullable(3))), POWER(3, toLowCardinality(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(57, POWER(3, materialize(2)), time) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(materialize(toNullable(3))), POWER(3, toLowCardinality(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(57, POWER(3, materialize(2)), time) ORDER BY event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 148 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', toNullable(2)), toString(time)) GROUP BY toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(toUInt256(materialize(toNullable(3)))), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(toUInt256(materialize(3))), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, pow(materialize(3), toNullable(2)), 1)), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, 2) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, pow(materialize(3), toNullable(2)), 1)), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, pow(materialize(3), toNullable(2)), 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 152 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, POWER(POW(3, 2), 2), 1)), toDateTime(power(toNullable(3), toLowCardinality(2)), tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, POWER(POW(3, 2), 2), 1)), toDateTime(power(toNullable(3), toLowCardinality(2)), tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, POWER(POW(3, 2), 2), 1)), toDateTime(power(toNullable(3), toLowCardinality(2)), time.2)) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 153 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, 2) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Argument at index 0 for function dateDiff must be constant. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x0000000007b6b086 4. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008714a94 5. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 6. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 7. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 8. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 10. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 11. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 12. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 13. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e1250f 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 154 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Got boring AST Fuzzing step 155 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toLowCardinality(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 0), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(materialize(toUInt256(2)))) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toLowCardinality(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 0), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(materialize(toUInt256(2)))) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toLowCardinality(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 0), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(materialize(toUInt256(2)))) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 156 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toNullable(toNullable(57)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toNullable(toNullable(57)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toNullable(toNullable(57)), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 157 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString(POW(3, toNullable(2)), 'ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString(POW(3, toNullable(2)), 'ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) 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 (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(POW(3, toNullable(2)), 'ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 158 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1048576 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1048576) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 159 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 160 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2, 2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2, 2)) 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 (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2, 2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 161 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Got boring AST Fuzzing step 163 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Got boring AST Fuzzing step 164 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toNullable('ok'), toString(toUInt128(57), toUInt128(materialize(toLowCardinality(2))), time)), toNullable(57) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toString(57, POWER(materialize(3), 2), time), time, 1)), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toNullable('ok'), toString(toUInt128(57), toUInt128(materialize(toLowCardinality(2))), time)), toNullable(57) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toString(57, POWER(materialize(3), 2), time), time, 1)), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toNullable('ok'), toString(toUInt128(57), toUInt128(materialize(toLowCardinality(2))), time)), toNullable(57) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 165 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 3 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 3) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 167 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 168 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(materialize(3)), POWER(3, toLowCardinality(2)) WITH TOTALS Got boring AST Fuzzing step 169 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(3), POWER(3, 2) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(3), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = toNullable(toUInt128(0)), 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(3), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 170 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(toLowCardinality(2))) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(time.2)) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 173 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(0), toFixedString('ok', pow(3, materialize(2)), 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(0), toFixedString('ok', pow(3, materialize(2)), 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) 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 (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', pow(3, materialize(2)), 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 174 out of 1000 EXPLAIN PIPELINE compact = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(POW(3, toNullable(2)), 3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'EXPLAIN PIPELINE compact = true WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(POW(3, toNullable(2)), 3), POWER(3, toLowCardinality(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 175 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))) = toNullable(toUInt128(0)), 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(toLowCardinality(2))) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))) = toNullable(toUInt128(0)), 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(toLowCardinality(2))) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))) = toNullable(toUInt128(0)), 'ok', 2, toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(toLowCardinality(2))) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 176 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(toNullable(0))), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483647) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', 2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 179 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(toNullable(0))), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)) WHERE toLowCardinality(toNullable(2)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 3, POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)) WHERE toLowCardinality(toNullable(2)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 3, POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)) WHERE toLowCardinality(toNullable(2)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 3, POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 181 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 3, POWER(3, 2) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 3, POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(toNullable(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 3, POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 182 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1.0001 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toNullable(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(3), POWER(3, 2) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1.0001) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toNullable(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY materialize('01473_metric_log_table_event_start_time_microseconds_test'), materialize(3), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 183 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(toNullable(0))), power(toNullable(3), toNullable(materialize(toLowCardinality(toNullable(2))))), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(toNullable(0))), power(toNullable(3), toNullable(materialize(toLowCardinality(toNullable(2))))), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(toNullable(0))), power(toNullable(3), toNullable(materialize(toLowCardinality(toNullable(2))))), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 184 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(toNullable(0))), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(toNullable(0))), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(time.2)) = toNullable(toUInt128(toNullable(0))), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 185 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString(toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString(toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)), toFixedString(toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 187 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 'ok', toNullable(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 'ok', toNullable(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(time.2)) = toNullable(toUInt128(0)), 'ok', toNullable(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 190 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 191 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 'ok', toNullable(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, 2) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 'ok', toNullable(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, 2) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)), 'ok', toNullable(2), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, 2) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 192 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 193 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), toLowCardinality(toNullable(materialize(3))), sleep(2), materialize('01473_trace_log_table_event_start_time_microseconds_test'), 'ok' ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), toLowCardinality(toNullable(materialize(3))), sleep(2), materialize('01473_trace_log_table_event_start_time_microseconds_test'), 'ok' ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), toLowCardinality(toNullable(materialize(3))), sleep(2), materialize('01473_trace_log_table_event_start_time_microseconds_test'), 'ok' ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 194 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Got boring AST Fuzzing step 195 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toNullable(toLowCardinality(3)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), toFixedString('ok', toNullable(2)), toString(time)) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', materialize(3), POWER(3, toLowCardinality(2)) WITH TOTALS Current AST is too long, discarding it and using the original AST as a start Fuzzing step 196 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 197 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 198 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toLowCardinality(3)), 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toLowCardinality(3)), 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toLowCardinality(3)), 2))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 199 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, toLowCardinality('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, toLowCardinality('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, toLowCardinality('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 200 out of 1000 WITH ( SELECT event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 201 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if('ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if('ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if('ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 202 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 0 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime64(6)): In scope WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 203 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 204 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 206 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 210 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime64(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945e4f 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 212 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 214 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 216 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 217 out of 1000 EXPLAIN PIPELINE header = true, compact = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE header = true, compact = true WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 218 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 219 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toNullable(3), toLowCardinality(3), tupleElement(time, toLowCardinality(2)), toLowCardinality(57) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 'second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 2))) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toNullable(3), toLowCardinality(3), tupleElement(time, toLowCardinality(2)), toLowCardinality(57) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 'second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 2))) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toNullable(3), toLowCardinality(3), tupleElement(time, toLowCardinality(2)), toLowCardinality(57) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 'second'), toDateTime(time.1), toDateTime(tupleElement(time, if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 2))) = toLowCardinality(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 220 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = toNullable(0), time)) Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time)) Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok') Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok')': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 223 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = 0, time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = 0, time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 224 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time)) Got boring AST Fuzzing step 225 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(toUInt128(0)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(toUInt128(0)), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(toUInt128(0)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 226 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toDateTime(tupleElement(time, toLowCardinality(1))) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toDateTime(tupleElement(time, toLowCardinality(1))) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY toDateTime(tupleElement(time, toLowCardinality(1))) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 227 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time)) Got boring AST Fuzzing step 228 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(dateDiff(toNullable('second'), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), tupleElement(time, toUInt128(1))), toDateTime(toDateTime(tupleElement(time, 2)), tupleElement(2))) = toNullable(0), time)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 229 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Argument at index 0 for function dateDiff must be constant. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x0000000007b6b086 4. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008714a94 5. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 6. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 7. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 8. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 10. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 11. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 12. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 13. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e12af7 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 230 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 231 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 232 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 233 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY POW(3, materialize(toNullable(2))) DESC, event_time DESC LIMIT 3.4028234663852886e38 ) AS time SELECT if(toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), materialize(3)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY POW(3, materialize(toNullable(2))) DESC, event_time DESC LIMIT 3.4028234663852886e38) AS time SELECT if(toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), materialize(3)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 234 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 236 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 237 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(toUInt128(0)), 57), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt256(toNullable(toUInt128(3))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(toUInt128(0)), 57), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt256(toNullable(toUInt128(3))), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(toUInt128(0)), 57), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt256(toNullable(toUInt128(3))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 Fuzzing step 238 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 239 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 240 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), current_database, currentDatabase()) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT NULL, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), current_database, currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time SELECT NULL, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)), current_database, currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 241 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 242 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE toFixedString(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE toFixedString(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: LowCardinality(FixedString(56)). In query (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE toFixedString(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 243 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 244 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 245 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY power(materialize(3), 2), toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY power(materialize(3), 2), toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY power(materialize(3), 2), toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 246 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT event_time_microseconds, if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE materialize(3) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT event_time_microseconds, if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE materialize(3)': Received from localhost:9000. DB::Exception: Unknown expression identifier 'event_time_microseconds' in scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT event_time_microseconds, if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE materialize(3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 247 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time, time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time, time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime64(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time, time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 248 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 249 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(power(toNullable(3), toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -2147483648) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 253 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Got boring AST Fuzzing step 254 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001750ace8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 255 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(POWER(toLowCardinality(3), 2), 3, 2), 2), 3, toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 2147483648) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(POWER(toLowCardinality(3), 2), 3, 2), 2), 3, toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 256 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1048577 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1048577) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 257 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Got boring AST Fuzzing step 259 out of 1000 WITH ( SELECT POW(3, materialize(toNullable(2))), event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(3, toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT POW(3, materialize(toNullable(2))), event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(3, toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT POW(3, materialize(toNullable(2))), event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(3, toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001750ace8 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 260 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 3 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), toLowCardinality(toNullable(toUInt256(2)))), toNullable(toString(57, POWER(3, materialize(2)), time), 3), toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 3) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), toLowCardinality(toNullable(toUInt256(2)))), toNullable(toString(57, POWER(3, materialize(2)), time), 3), toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 261 out of 1000 WITH ( SELECT toLowCardinality(toNullable(toUInt128(3))), event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT toLowCardinality(toNullable(toUInt128(3))), event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT toLowCardinality(toNullable(toUInt128(3))), event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 262 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 100 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 100) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 264 out of 1000 WITH ( SELECT event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) Error on processing query 'WITH (SELECT event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 265 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) Got boring AST Fuzzing step 266 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) Got boring AST Fuzzing step 267 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 268 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 269 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok'), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok'), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok'), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001750ace8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 271 out of 1000 WITH ( SELECT event_time_microseconds, toUInt128(0), event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, materialize(toUInt128(2))), time)) Error on processing query 'WITH (SELECT event_time_microseconds, toUInt128(0), event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, materialize(toUInt128(2))), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 4, should be 2: In scope WITH (SELECT event_time_microseconds, toUInt128(0), event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, materialize(toUInt128(2))), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 272 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toString(time), time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toString(time), time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toString(time), time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 273 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(POW(3, 2), time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(POW(3, 2), time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime64(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(POW(3, 2), time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 275 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Got boring AST Fuzzing step 276 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(0), toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(0), toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(0), toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 277 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Got boring AST Fuzzing step 278 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, materialize(2)), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, materialize(2)), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, materialize(2)), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 279 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))), 0), toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))), 0), toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))), 0), toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 280 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 281 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toLowCardinality(3), 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toLowCardinality(3), 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toLowCardinality(3), 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 282 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 283 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Got boring AST Fuzzing step 285 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) GROUP BY toNullable(toUInt128(3)), toLowCardinality(toNullable(toUInt128(3))), POW(toLowCardinality(toLowCardinality(power(3, toNullable(3), materialize(2)), 3)), 2), if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), toLowCardinality('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) GROUP BY toNullable(toUInt128(3)), toLowCardinality(toNullable(toUInt128(3))), POW(toLowCardinality(toLowCardinality(power(3, toNullable(3), materialize(2)), 3)), 2), if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), toLowCardinality('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) GROUP BY toNullable(toUInt128(3)), toLowCardinality(toNullable(toUInt128(3))), POW(toLowCardinality(toLowCardinality(power(3, toNullable(3), materialize(2)), 3)), 2), if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), toLowCardinality('ok'), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 286 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), toLowCardinality(3), 2), time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), toLowCardinality(3), 2), time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 287 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Got boring AST Fuzzing step 288 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 10 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), 57), 3, 2), 2), 3, 2), time)) PREWHERE power(toNullable(toNullable(3)), toNullable(2)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 10) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), 57), 3, 2), 2), 3, 2), time)) PREWHERE power(toNullable(toNullable(3)), toNullable(2))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 289 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log GROUP BY time.2 ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', pow(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)), 3), 2), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log GROUP BY time.2 ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', pow(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)), 3), 2), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log GROUP BY time.2 ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 290 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 291 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, toLowCardinality(2)), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 0 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1))) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), toNullable(toUInt256(3)), materialize(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1))) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), toNullable(toUInt256(3)), materialize(2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1))) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), toNullable(toUInt256(3)), materialize(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 294 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 2147483646 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(time.2)) = 0, toFixedString('ok', materialize(2)), toString(power(POWER(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) WHERE POWER(POW(toNullable(3), 2), 2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 2147483646) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(time.2)) = 0, toFixedString('ok', materialize(2)), toString(power(POWER(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) WHERE POWER(POW(toNullable(3), 2), 2)': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 295 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 1048576 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, toUInt128(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS FIRST LIMIT 1048576) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, toUInt128(2)), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 297 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(POWER(toNullable(3), toNullable(2)), toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), toNullable(2)), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(POWER(toNullable(3), toNullable(2)), toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), toNullable(2)), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(POWER(toNullable(3), toNullable(2)), toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), toNullable(2)), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 298 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 2147483646 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toUInt128(2)), toString(power(POWER(2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 2147483646) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toUInt128(2)), toString(power(POWER(2), 3, 2), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 299 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(sleep(toNullable(2)), time, 2))) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(sleep(toNullable(2)), time, 2))) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(UInt8): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(sleep(toNullable(2)), time, 2))) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 300 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toNullable(toUInt128(2)), toDateTime(time.2)) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toNullable(toUInt128(2)), toDateTime(time.2)) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toNullable(toUInt128(2)), toDateTime(time.2)) = 0, 'ok', toUInt128(2), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 301 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Got boring AST Fuzzing step 302 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Got boring AST Fuzzing step 304 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString(toNullable('ok'), toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString(toNullable('ok'), toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString(toNullable('ok'), toUInt128(2)), toString(power(POWER(POW(toFixedString(toNullable(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 305 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC LIMIT 1) AS time SELECT dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 307 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 309 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(pow(3, toNullable(2)), time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), materialize(3), 2), time)) WHERE pow(3, toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(pow(3, toNullable(2)), time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), materialize(3), 2), time)) WHERE pow(3, toNullable(2))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(Float64): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(pow(3, toNullable(2)), time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), materialize(3), 2), time)) WHERE pow(3, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 310 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), materialize(3), 2), time)) Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toString(POWER(2, 3), time) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), materialize(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toString(POWER(2, 3), time) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), materialize(3), 2), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_log GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toString(POWER(2, 3), time) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 23. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 312 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok'), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, toNullable(2)), 2), materialize(3), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok'), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, toNullable(2)), 2), materialize(3), 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok'), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, toNullable(2)), 2), materialize(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x000000001750ace8 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 313 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), materialize(3), 2), time)) Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)) PREWHERE toLowCardinality(57) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)) PREWHERE toLowCardinality(57)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)) PREWHERE toLowCardinality(57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 316 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)) Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), materialize(2)), 3, 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), materialize(2)), 3, 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), materialize(2)), 3, 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 318 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2), toLowCardinality(toString(toUInt128(57), POWER(toNullable(3), 2), time), '01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 319 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 320 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT NULL ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT NULL) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual NULL. In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT NULL) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x0000000007b6672c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f3938 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 321 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 10 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 10) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 322 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 323 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 324 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 325 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 326 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 328 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Got boring AST Fuzzing step 329 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize('ok'), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 331 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 333 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 334 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POW(toLowCardinality(3), 2), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POW(toLowCardinality(3), 2), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POW(toLowCardinality(3), 2), time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 335 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 336 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 338 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 340 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 341 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 345 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 346 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 347 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 348 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 349 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 350 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 351 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 352 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 353 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 354 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 355 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time ASC LIMIT 1048575 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', POWER(materialize(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), 3)), 3, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time ASC LIMIT 1048575) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', POWER(materialize(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), 3)), 3, 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 356 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 357 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 358 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 359 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 360 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 361 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 362 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 363 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 364 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 365 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 366 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 367 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 368 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 369 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 370 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 371 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 372 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 373 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 374 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 375 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 376 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 377 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 378 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 379 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 380 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 381 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 382 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toLowCardinality(materialize(3)), currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toLowCardinality(materialize(3)), currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(current_database, toLowCardinality(materialize(3)), currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 383 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 384 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 385 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(56), time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(56), time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 386 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 387 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 388 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 389 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 390 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 391 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 392 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 393 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 394 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 395 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 396 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 397 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 398 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 400 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 401 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 402 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 403 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 404 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 405 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 406 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 407 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 408 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 409 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 410 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 411 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 412 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 413 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 414 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 415 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 416 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 417 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 418 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 419 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 420 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 421 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 422 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 423 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 424 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 425 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 426 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 427 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 428 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 429 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 430 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 431 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 432 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 433 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 434 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 435 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 436 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 437 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 438 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 439 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 440 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 441 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 442 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 443 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 444 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 445 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 447 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 448 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 450 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 451 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 452 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 453 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 454 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 455 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 456 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 457 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 459 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 460 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 461 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 462 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 463 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 464 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 465 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 466 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 467 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 468 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 469 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 470 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 471 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 472 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 473 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 474 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 475 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 476 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 477 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 478 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 479 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 480 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 481 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 482 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 483 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 484 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 485 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 486 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 487 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 488 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 489 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 490 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1025 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1025) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 491 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 492 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 493 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 494 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 495 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 496 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 497 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 498 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 499 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 500 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 501 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 502 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(toUInt128(56)) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(toUInt128(56)) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase(toUInt128(56)) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 256) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 503 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 504 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 505 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 506 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 507 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 508 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 509 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 511 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 512 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 513 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 514 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 515 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 516 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 517 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 518 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 519 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 520 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 521 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 522 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time DESC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time DESC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 523 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 524 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 525 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 527 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 528 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 529 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 531 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 532 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 533 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 534 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 535 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time DESC LIMIT 256 ) AS time SELECT if('ok', toString(dateDiff(toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time DESC LIMIT 256) AS time SELECT if('ok', toString(dateDiff(toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)), time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 536 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 537 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 538 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff('second', toDateTime(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2), time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', 2, toString(time)), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff('second', toDateTime(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2), time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', 2, toString(time)), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff('second', toDateTime(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2), time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time)), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 539 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 540 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 541 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 542 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 543 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 544 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 545 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 546 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 547 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 549 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 550 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 551 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 552 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 554 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 555 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 556 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) DESC NULLS LAST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) DESC NULLS LAST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 557 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(toLowCardinality(2), current_database, currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toUInt256(2)))) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(toLowCardinality(2), current_database, currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toUInt256(2)))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(toLowCardinality(2), current_database, currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 559 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 560 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 561 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 562 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 563 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 564 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 565 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 566 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 568 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 570 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 571 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 572 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 573 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 574 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 576 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 577 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 578 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 579 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 581 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 582 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time ASC NULLS FIRST LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(toUInt256(0)), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time ASC NULLS FIRST LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(toUInt256(0)), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 583 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 584 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 585 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 586 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 587 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 588 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 589 out of 1000 WITH ( SELECT toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2))), 2), time), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2))), 2), time), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2))), 2), time), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 590 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 591 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 592 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 593 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 594 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 595 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 596 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 597 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 598 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 599 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 600 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 601 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 602 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 603 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 604 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 606 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 607 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 608 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 609 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 610 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 611 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 613 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 614 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time DESC LIMIT 256 ) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time DESC LIMIT 256) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 615 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 616 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 617 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 618 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 619 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 621 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 622 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 623 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 624 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 625 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 626 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 627 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 628 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 629 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 630 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 631 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 632 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 633 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 634 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(materialize('01473_metric_log_table_event_start_time_microseconds_test'), current_database, currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(toLowCardinality(toNullable(0))), dateDiff(toNullable('second'), toDateTime(toNullable(57), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(materialize('01473_metric_log_table_event_start_time_microseconds_test'), current_database, currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(toLowCardinality(toNullable(0))), dateDiff(toNullable('second'), toDateTime(toNullable(57), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE equals(materialize('01473_metric_log_table_event_start_time_microseconds_test'), current_database, currentDatabase()) ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 635 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 636 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 638 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 639 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 640 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time DESC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable(materialize(toNullable('second'))), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time DESC LIMIT 256) AS time SELECT if(dateDiff(toNullable(materialize(toNullable('second'))), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 641 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 642 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 643 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 644 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 645 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 646 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 649 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 650 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 651 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 652 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 653 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 654 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 655 out of 1000 WITH ( SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 656 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 657 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 659 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 660 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 661 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 662 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 663 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 665 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 666 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 667 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 668 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 669 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 671 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 672 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 673 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 674 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 100 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 100) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 675 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 676 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 677 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 678 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 679 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 680 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 681 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 682 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 685 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 686 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 687 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 688 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 689 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 690 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 691 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 692 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 693 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 694 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 695 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 696 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 697 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 698 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 699 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 700 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 701 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 702 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 703 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 704 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 706 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 707 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 708 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 709 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 710 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 711 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 712 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 713 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 715 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS LAST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toUInt256(2))))) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS LAST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toUInt256(2))))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 716 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 718 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 719 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 720 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 721 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 722 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 723 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 724 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 725 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 726 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 728 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 729 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 730 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 731 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 733 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 734 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 735 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 736 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 737 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 738 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 739 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 740 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 741 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 742 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 743 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 745 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 746 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 748 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 749 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 750 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 751 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 752 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 753 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 754 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 755 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 756 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 757 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 758 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 759 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 760 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 761 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 762 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 763 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 764 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 765 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 766 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 767 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 769 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 770 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 771 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 772 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 774 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 775 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 776 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 777 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 778 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 779 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 780 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 781 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 782 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 783 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 784 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 785 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 786 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 787 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 788 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 789 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 790 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 791 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 792 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 793 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 794 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 795 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 796 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 797 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 798 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 799 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 800 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 802 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 803 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 804 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 805 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 806 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 807 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 808 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 809 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 810 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 811 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 813 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 815 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 816 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 817 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 818 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 819 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 820 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 821 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 822 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 823 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 824 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 825 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 828 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 829 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 831 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 832 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 833 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 834 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 835 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 836 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 837 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 838 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 839 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 840 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 842 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 843 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 844 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 845 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 846 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 847 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 848 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 849 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 850 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 851 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 852 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 853 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 854 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 856 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 857 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 858 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 859 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 860 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 861 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 862 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(2, 57, POWER(POW(3, 2)), time), POWER(POW(3, 2), 2, materialize(3)), currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS LAST, event_time DESC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 'second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(2, 57, POWER(POW(3, 2)), time), POWER(POW(3, 2), 2, materialize(3)), currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS LAST, event_time DESC LIMIT 256) AS time SELECT if(dateDiff(toNullable(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 'second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() GROUP BY toString(2, 57, POWER(POW(3, 2)), time), POWER(POW(3, 2), 2, materialize(3)), currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS LAST, event_time DESC LIMIT 256) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 865 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 866 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 868 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 869 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 870 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 871 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 872 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 873 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 874 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 875 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 876 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 877 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 878 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 879 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 880 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 881 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 884 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 885 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 886 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 887 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 888 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 889 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 890 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 891 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 892 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 893 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 894 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 895 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 896 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 897 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS LAST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS LAST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 898 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 899 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 901 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 902 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 903 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 904 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 905 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 906 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 907 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time), time, 2))) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time), time, 2))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 908 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 909 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 910 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 911 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 913 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 914 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 915 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 916 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 917 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 918 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 919 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 920 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 921 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 922 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 923 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 924 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 925 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 926 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 927 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 928 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 929 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 930 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 931 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 932 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 933 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 934 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 935 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) DESC NULLS LAST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) DESC NULLS LAST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 936 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 937 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 938 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 939 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 940 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 941 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 942 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 943 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 944 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 945 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 946 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 947 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2)))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 948 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 949 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 950 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 951 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 952 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 953 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 954 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 955 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 957 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 958 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 959 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 961 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 962 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 963 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 964 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 966 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 967 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 968 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 969 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 970 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 972 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 973 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 974 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 975 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 976 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 978 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 979 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 981 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 982 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 983 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 984 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 985 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 986 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 988 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 989 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 991 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 992 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 994 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 995 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae Fuzzing step 996 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 997 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 998 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 999 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_log WHERE current_database = currentDatabase() ORDER BY materialize(materialize(3)) ASC NULLS FIRST, event_time ASC LIMIT 256 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 2 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 3 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 4 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 5 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 6 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 7 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 8 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 10 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 11 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 12 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 13 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 14 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 15 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 16 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 17 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 18 out of 1000 SELECT toLowCardinality(POW(toFixedString(toUInt128(toNullable(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_query_thread_log_table_event_start_time_microseconds_test') Error on processing query 'SELECT toLowCardinality(POW(toFixedString(toUInt128(toNullable(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_query_thread_log_table_event_start_time_microseconds_test')': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(POW(toFixedString(toUInt128(toNullable(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_query_thread_log_table_event_start_time_microseconds_test'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 19 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 20 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 21 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 22 out of 1000 SELECT toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)) GROUP BY time.2, POWER(POW(toNullable(3), 2), 2) Error on processing query 'SELECT toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)) GROUP BY time.2, POWER(POW(toNullable(3), 2), 2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)) GROUP BY time.2, POWER(POW(toNullable(3), 2), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 23 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 24 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) Got boring AST Fuzzing step 26 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) Got boring AST Fuzzing step 27 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) GROUP BY if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) GROUP BY if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) GROUP BY if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 28 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) Got boring AST Fuzzing step 29 out of 1000 SELECT toLowCardinality(POWER(3, 2), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) Error on processing query 'SELECT toLowCardinality(POWER(3, 2), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(POWER(3, 2), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 30 out of 1000 SELECT toLowCardinality(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')) Got boring AST Fuzzing step 31 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 EXPLAIN PIPELINE compact = true SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 33 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') Got boring AST Fuzzing step 34 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 36 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 37 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 38 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 39 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 40 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 41 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 42 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 43 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 44 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 45 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 46 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 47 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 48 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 49 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 50 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) Got boring AST Fuzzing step 52 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(toUInt128(0)), materialize(57) Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(toUInt128(0)), materialize(57) Got boring AST Fuzzing step 54 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(0), 57 Error on processing query 'SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(0), 57': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 1]. In scope SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(0), 57. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 55 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(toUInt128(0)), 57 Error on processing query 'SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(toUInt128(0)), 57': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 1]. In scope SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(toUInt128(0)), 57. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 56 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test') GROUP BY toNullable(toUInt128(0)), materialize(57) Error on processing query 'SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test') GROUP BY toNullable(toUInt128(0)), materialize(57)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test') GROUP BY toNullable(toUInt128(0)), materialize(57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 57 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(toUInt128(0)), materialize(57) Got boring AST Fuzzing step 58 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(toUInt128(0)), materialize(57) Got boring AST Fuzzing step 59 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(0), materialize(57) Got boring AST Fuzzing step 61 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(0), materialize(materialize(57)) Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY 0, materialize(materialize(57)) Error on processing query 'SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY 0, materialize(materialize(57))': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY 0, materialize(materialize(57)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 63 out of 1000 EXPLAIN QUERY TREE SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) WHERE materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) GROUP BY toNullable(toNullable(toUInt256(57)), 0), materialize(57) Error on processing query 'EXPLAIN QUERY TREE SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) WHERE materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) GROUP BY toNullable(toNullable(toUInt256(57)), 0), materialize(57)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) WHERE materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) GROUP BY toNullable(toNullable(toUInt256(57)), 0), materialize(57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 64 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(0), materialize(materialize(57)) Got boring AST Fuzzing step 65 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(materialize(0)), materialize(materialize(57)) Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY toNullable(materialize(0)), materialize(materialize(57)) Got boring AST Fuzzing step 67 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 70 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 71 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 72 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 74 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 75 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 76 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 77 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 78 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 79 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 80 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 82 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 83 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 84 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''01473_query_thread_log_table_event_start_time_microseconds_test''): '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 85 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 86 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''01473_query_thread_log_table_event_start_time_microseconds_test''): '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 87 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 88 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 89 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 91 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 92 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 0), materialize(57) Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 0), materialize(57)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 0), materialize(57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 96 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 97 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 98 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 99 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 (''01473_query_thread_log_table_event_start_time_microseconds_test''): '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 100 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 105 out of 1000 EXPLAIN SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 EXPLAIN SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 107 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 109 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 110 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 111 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 112 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 113 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 114 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 115 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 116 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 118 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 119 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 122 out of 1000 EXPLAIN SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 EXPLAIN SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 124 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 126 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 127 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 128 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''01473_query_thread_log_table_event_start_time_microseconds_test''): '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 129 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 130 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 131 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 132 out of 1000 EXPLAIN SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 135 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), 57 WITH TOTALS Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), 57 WITH TOTALS': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), 57 WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 137 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 138 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 139 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''01473_query_thread_log_table_event_start_time_microseconds_test''): '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 141 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 144 out of 1000 EXPLAIN SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 EXPLAIN AST SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, 57 Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, 57': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, 57. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 149 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 150 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 151 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 (''01473_query_thread_log_table_event_start_time_microseconds_test''): '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Got boring AST Fuzzing step 153 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), materialize(57) Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(materialize(toNullable(0))), materialize(57) Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), toFixedString('ok', 2), toString(time)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(materialize(toNullable(0))), 57 Error on processing query 'SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), toFixedString('ok', 2), toString(time)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(materialize(toNullable(0))), 57': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(0), toFixedString('ok', 2), toString(time)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(materialize(toNullable(0))), 57. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 156 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(materialize(toNullable(0))), materialize(57) Got boring AST Fuzzing step 157 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(63)) GROUP BY materialize(materialize(toNullable(0))), materialize(57) Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(63)) GROUP BY materialize(toNullable(0)), materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 57) Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(63)) GROUP BY materialize(toNullable(0)), materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 57)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(63)) GROUP BY materialize(toNullable(0)), materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 159 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(63)) GROUP BY materialize(materialize(toNullable(0))), materialize(57) Got boring AST Fuzzing step 160 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(materialize(toNullable(0))), materialize(toLowCardinality(57)) Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(materialize(toNullable(0))), materialize(toLowCardinality(57)) Got boring AST Fuzzing step 162 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(POW(toLowCardinality(toLowCardinality(3)), 2), materialize(toNullable(0))), materialize(toLowCardinality(57)) Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(POW(toLowCardinality(toLowCardinality(3)), 2), materialize(toNullable(0))), materialize(toLowCardinality(57))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(POW(toLowCardinality(toLowCardinality(3)), 2), materialize(toNullable(0))), materialize(toLowCardinality(57)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 163 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(materialize(toNullable(0))), materialize(toLowCardinality(57)) Got boring AST Fuzzing step 164 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(materialize(0)), materialize(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)) Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(materialize(0)), materialize(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(materialize(0)), materialize(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 165 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(0)), materialize(toLowCardinality(57)) Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(0)), toLowCardinality(57) Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), toLowCardinality(63) GROUP BY materialize(toNullable(0)), toLowCardinality(57) Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT toLowCardinality(toUInt128(3)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63) GROUP BY materialize(toNullable(0)), toLowCardinality(57) Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT toLowCardinality(3), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63) GROUP BY materialize(toNullable(0)), toLowCardinality(57) Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(0)), toLowCardinality(57) Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 SELECT toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(toUInt256(materialize(toUInt256(3))), 0)), 57 WITH ROLLUP Error on processing query 'SELECT toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(toUInt256(materialize(toUInt256(3))), 0)), 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 3]. In scope SELECT toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(toUInt256(materialize(toUInt256(3))), 0)), 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 173 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY materialize(toNullable(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 176 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 177 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(toNullable('second'), 57) WITH ROLLUP Error on processing query 'SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(toNullable('second'), 57) 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 toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(toNullable('second'), 57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 178 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) WITH TOTALS Error on processing query 'SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 179 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(57) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 180 out of 1000 SELECT toLowCardinality(materialize(3)), '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 181 out of 1000 SELECT toLowCardinality(materialize(3)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT toLowCardinality(materialize(3)), materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT materialize(3), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 SELECT 3, toLowCardinality(toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, toLowCardinality(toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, toLowCardinality(toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 185 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), 57 WITH ROLLUP Error on processing query 'SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 2]. In scope SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 186 out of 1000 SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), 57 WITH ROLLUP Error on processing query 'SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 3]. In scope SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 188 out of 1000 SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 189 out of 1000 SELECT 3, toLowCardinality(POWER(toLowCardinality(3), 2), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(toLowCardinality(0)), toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, toLowCardinality(POWER(toLowCardinality(3), 2), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(toLowCardinality(0)), toLowCardinality(57) 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 3, toLowCardinality(POWER(toLowCardinality(3), 2), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(toLowCardinality(0)), toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 190 out of 1000 SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP WITH CUBE Error on processing query 'SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 181 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 191 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 194 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 195 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 196 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 197 out of 1000 EXPLAIN SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 200 out of 1000 EXPLAIN ESTIMATE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 202 out of 1000 EXPLAIN ESTIMATE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 203 out of 1000 EXPLAIN SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLL. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 205 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 207 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 208 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 EXPLAIN QUERY TREE SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 212 out of 1000 SELECT 3, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), 57 WITH ROLLUP Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 2]. In scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 216 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 217 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 218 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 219 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(toNullable(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 220 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 222 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 223 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 WHERE POW(materialize(materialize(3)), POWER(materialize(3), 2), 2) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 WHERE POW(materialize(materialize(3)), POWER(materialize(3), 2), 2) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 WHERE POW(materialize(materialize(3)), POWER(materialize(3), 2), 2) GROUP BY toNullable(0), toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 224 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 225 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 227 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 228 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 229 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 230 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 231 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 232 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 233 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 234 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 235 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 237 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 EXPLAIN SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 EXPLAIN SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 240 out of 1000 EXPLAIN SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 241 out of 1000 EXPLAIN SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 242 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 243 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 245 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 246 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 247 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 248 out of 1000 EXPLAIN SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 252 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 253 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 254 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 255 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 257 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 258 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 259 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WI. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 262 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 263 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 265 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 266 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 267 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 268 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 269 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 270 out of 1000 EXPLAIN AST SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 271 out of 1000 EXPLAIN QUERY TREE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY toNullable(materialize(toUInt128(0))), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 EXPLAIN PIPELINE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 EXPLAIN PIPELINE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 276 out of 1000 EXPLAIN PIPELINE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 277 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 EXPLAIN AST SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 EXPLAIN AST SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 280 out of 1000 EXPLAIN AST SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 281 out of 1000 EXPLAIN AST SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 282 out of 1000 EXPLAIN QUERY TREE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 284 out of 1000 EXPLAIN QUERY TREE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 285 out of 1000 EXPLAIN AST SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 EXPLAIN AST SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 287 out of 1000 EXPLAIN AST SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 288 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 290 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 291 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 292 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 293 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 294 out of 1000 EXPLAIN SYNTAX SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 296 out of 1000 EXPLAIN SYNTAX SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 297 out of 1000 EXPLAIN SYNTAX SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 298 out of 1000 EXPLAIN ESTIMATE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 EXPLAIN SYNTAX SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 302 out of 1000 EXPLAIN SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 303 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 304 out of 1000 EXPLAIN PIPELINE SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 307 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(toUInt128(0)), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 308 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(0), 57 WITH ROLLUP Error on processing query 'SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(0), 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 3]. In scope SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(0), 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 309 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY 0, 57 WITH ROLLUP Error on processing query 'SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY 0, 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY 0, 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 311 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 312 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 WITH TOTALS Error on processing query 'SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 313 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 314 out of 1000 SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 WITH TOTALS Error on processing query 'SELECT 3, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 315 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 317 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 318 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 319 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 320 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 321 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 322 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 323 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 325 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 327 out of 1000 EXPLAIN ESTIMATE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 328 out of 1000 EXPLAIN SYNTAX SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 331 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 332 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 333 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 334 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 335 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 336 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 337 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 WITH TOTALS Error on processing query 'SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 338 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 339 out of 1000 EXPLAIN PIPELINE SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 340 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 342 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 343 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 344 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), 57 WITH ROLLUP Error on processing query 'SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 3]. In scope SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY materialize(0), 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 345 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', materialize(toUInt256(63)) GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 SELECT 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 349 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY materialize(0), toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 350 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 352 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 353 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 354 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 355 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 356 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 358 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 359 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 360 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 361 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 362 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 363 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 364 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 365 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 366 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 367 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 368 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 369 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 370 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 371 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 372 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 373 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 374 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 375 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 376 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 377 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 378 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 379 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 380 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 381 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 382 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 383 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 384 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 385 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 386 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 387 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 388 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 389 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 390 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 391 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 392 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 393 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 394 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 395 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 396 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 397 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 398 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 399 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 400 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 401 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 402 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) WITH TOTALS Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 403 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 404 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 405 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 406 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 407 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 408 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 409 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 410 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 411 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 412 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 413 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 414 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 415 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 416 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 417 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 418 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 419 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 420 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 421 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 422 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 424 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 425 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 426 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 427 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 428 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 429 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 430 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 431 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 432 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 433 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 434 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 435 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 436 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 437 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 438 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 439 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 440 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 441 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 442 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 443 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 444 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 445 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 446 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 447 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 448 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 449 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 450 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 451 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 452 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 453 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 454 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 455 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 456 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 457 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 458 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 459 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 460 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 461 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 462 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 463 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 464 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 465 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 466 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 467 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 468 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 469 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 470 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 471 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 472 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 473 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 474 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 475 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 476 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 477 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 478 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 479 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 480 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 481 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 482 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 483 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 484 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 485 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 486 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 487 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 488 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 489 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 490 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 491 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 492 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 493 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 494 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 495 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 496 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 497 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 498 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 499 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 500 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 501 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 502 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 503 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 504 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 505 out of 1000 SELECT materialize(3), toNullable(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP Error on processing query 'SELECT materialize(3), toNullable(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), toNullable(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 506 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 507 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 508 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 509 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 510 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 511 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 512 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 513 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 514 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 515 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 516 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 517 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 518 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 520 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 521 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 522 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 523 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 524 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 525 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 526 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 527 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 528 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 529 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 530 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 531 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 532 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 533 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 534 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 535 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 536 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 537 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 538 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 539 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 540 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 541 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 542 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 543 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 544 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 545 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 546 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 547 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 548 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 549 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 550 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 551 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 552 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 553 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 554 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 555 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 556 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 557 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 558 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 559 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 561 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 562 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 563 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 564 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 565 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 566 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 567 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 569 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 570 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 571 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toUInt128(2), 57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toUInt128(2), 57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toUInt128(2), 57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 572 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 573 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(materialize(63)) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(materialize(63)) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(materialize(63)) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 574 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 575 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 576 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 577 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 578 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 580 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 581 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 582 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 583 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 584 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 585 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 586 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 587 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 588 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 589 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 590 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 591 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 592 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 593 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 594 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 595 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 596 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 597 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 598 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 599 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 600 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 601 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 602 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 603 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 604 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 605 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 606 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 607 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 608 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 609 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 610 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 611 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 612 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 613 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 614 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 615 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 616 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 617 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 618 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 619 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 620 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 621 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 622 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 623 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 624 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 625 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 626 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 627 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 628 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 629 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 630 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 631 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 632 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 633 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 634 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 635 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 636 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 638 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 639 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 640 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 641 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 642 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 643 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 644 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 645 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 646 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 647 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 648 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 649 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 650 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 651 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 652 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 653 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 654 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 655 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 656 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 657 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 659 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 660 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 661 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 662 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 663 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 664 out of 1000 SELECT materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 3]. In scope SELECT materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 665 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 666 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 667 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 668 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 669 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 670 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 671 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 672 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 673 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 674 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 675 out of 1000 SELECT materialize(3), materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 676 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 677 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 678 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 679 out of 1000 SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toLowCardinality(57)) WITH ROLLUP Error on processing query 'SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toLowCardinality(57)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toLowCardinality(57)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 680 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 681 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 682 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 684 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 685 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 686 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 687 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 688 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 689 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 691 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 692 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 693 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 694 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 695 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 696 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 698 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 699 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 700 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 701 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 702 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 703 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 704 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 706 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 707 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 708 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 709 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 710 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 711 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 712 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 713 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 715 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 717 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 718 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 719 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 720 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 721 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 722 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 723 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 724 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 725 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 726 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 727 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 728 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 729 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 730 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 731 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 732 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 733 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 734 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 735 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 736 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 737 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 738 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 739 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 740 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 741 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 742 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 743 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 744 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 745 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 746 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 747 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 748 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 749 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 750 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 751 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 752 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 753 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 754 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 755 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 756 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 757 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 758 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 759 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 760 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 761 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 762 out of 1000 SELECT 3, toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT 3, toLowCardinality(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 763 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 764 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 765 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 766 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toFixedString('ok', 2), 57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toFixedString('ok', 2), 57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toFixedString('ok', 2), 57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 768 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 769 out of 1000 SELECT materialize(3), materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toUInt128(57)) WITH ROLLUP Error on processing query 'SELECT materialize(3), materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toUInt128(57)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), materialize(3), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toUInt128(57)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 770 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 771 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 772 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 773 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 774 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 775 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 776 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 777 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 778 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 779 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 780 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 781 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 782 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 783 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 784 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 785 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 786 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 787 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 788 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 789 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 790 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 791 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 792 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 793 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 794 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 795 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 796 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 797 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 798 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 800 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 801 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 802 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 803 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 804 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 805 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 806 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 807 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 808 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 809 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 810 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 811 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 812 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 813 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 814 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 815 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 816 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 817 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 818 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 819 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 820 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 821 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 822 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 823 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 824 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 825 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 827 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 828 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 829 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 831 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 832 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 833 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 834 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 835 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 836 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 837 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 838 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 839 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 840 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 842 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 843 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 844 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 845 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 846 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 847 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 848 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 849 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 850 out of 1000 SELECT materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), 3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), 3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), 3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 851 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 852 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 853 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 855 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 857 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 858 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 859 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 860 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 861 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 862 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 863 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 864 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 865 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 866 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 867 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 868 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 869 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 870 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 871 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 872 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 873 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 874 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 875 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 876 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 877 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 878 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 879 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 880 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 881 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 883 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 884 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 885 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 886 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 887 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 888 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 889 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 890 out of 1000 SELECT materialize(3), toNullable(3), '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), toNullable(3), '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), toNullable(3), '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 891 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 892 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 893 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 894 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 895 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 896 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 897 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 898 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 899 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 900 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 901 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 902 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 903 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 904 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 905 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 906 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 907 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 908 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 909 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 910 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 911 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 912 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 913 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 914 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 915 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 916 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, 57 WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, 57 WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, 57 WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 917 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 918 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 919 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 920 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 921 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 922 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 923 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 924 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 925 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 926 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 927 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 928 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 929 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 930 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 931 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 932 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 933 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 934 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 935 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 936 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 937 out of 1000 SELECT materialize(3), 3, toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 5]. In scope SELECT materialize(3), 3, toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 938 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 939 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN PIPELINE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 940 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 941 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 942 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 943 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 944 out of 1000 SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT 3, 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 945 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 946 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 947 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 948 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 949 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 950 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 951 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 952 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 953 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 954 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 955 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 956 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 957 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 958 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 959 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 960 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 961 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 962 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 963 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 964 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 965 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN ESTIMATE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 966 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 967 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 968 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 969 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 970 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 971 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 972 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 973 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 975 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 976 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 978 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 979 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN QUERY TREE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 980 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toLowCardinality(57)) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toLowCardinality(57)) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(toLowCardinality(57)) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 981 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 982 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 983 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 984 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 985 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 986 out of 1000 SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', 63 GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SYNTAX SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 0 (expected in range [1, 4]: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP: While processing SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 988 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 989 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 991 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 992 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 993 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 994 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 995 out of 1000 EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 4]. In scope SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 996 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 997 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('materialize'): materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 998 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) WITH ROLLUP Got boring AST Fuzzing step 999 out of 1000 EXPLAIN AST SELECT materialize(3), 3, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63) GROUP BY 0, toLowCardinality(57) 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 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toString(57, POWER(materialize(3), 2), time) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toString(57, POWER(materialize(3), 2), time)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 3 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toString(57, POWER(materialize(3), 2), time). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 2 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(POWER(2, toNullable(3)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(POWER(2, toNullable(3)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(POWER(2, toNullable(3)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 5 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 7 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 9 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 10 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time))) = 0, 'ok', toString(toNullable(57), time)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), POWER(toNullable(2), toLowCardinality(3), 2) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time))) = 0, 'ok', toString(toNullable(57), time)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), POWER(toNullable(2), toLowCardinality(3), 2) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time))) = 0, 'ok', toString(toNullable(57), time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), POWER(toNullable(2), toLowCardinality(3), 2) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 11 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(toLowCardinality(2), current_database, currentDatabase()) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(toLowCardinality(2), current_database, currentDatabase()) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(toLowCardinality(2), current_database, currentDatabase()) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 12 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 13 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 14 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 15 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 16 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok') Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok')': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 17 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POWER(toNullable(2), toLowCardinality(3), 2), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POWER(toNullable(2), toLowCardinality(3), 2), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(POWER(toNullable(2), toLowCardinality(3), 2), time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 18 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(57)), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(tupleElement(time, toLowCardinality(1)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(57)), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(tupleElement(time, toLowCardinality(1)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(57)), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 19 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toDateTime(tupleElement(time, 1)), time, 1)), toDateTime(time.2)) = 0, 'ok', toLowCardinality(toNullable(materialize(3))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toDateTime(tupleElement(time, 1)), time, 1)), toDateTime(time.2)) = 0, 'ok', toLowCardinality(toNullable(materialize(3))), toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toDateTime(time.1), time, 1)), toDateTime(time.2)) = 0, 'ok', toLowCardinality(toNullable(materialize(3))), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 20 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 21 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(toUInt128(toUInt256(3))), tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(toUInt128(toUInt256(3))), tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(toUInt128(toUInt256(3))), tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 22 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 23 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE POW(3, toNullable(toUInt256(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE POW(3, toNullable(toUInt256(2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE POW(3, toNullable(toUInt256(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 24 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 25 out of 1000 WITH ( SELECT event_time_microseconds, materialize(57), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, materialize(57), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, materialize(57), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 26 out of 1000 WITH ( SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toUInt256(2)))), time)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toUInt256(2)))), time)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toUInt256(2)))), time)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 27 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(materialize(toUInt256(toNullable(toUInt128(3)))), time, 2))) = 0, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(2, 57, POWER(toUInt256(2), 3, 2), time)), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(materialize(toUInt256(toNullable(toUInt128(3)))), time, 2))) = 0, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(2, 57, POWER(toUInt256(2), 3, 2), time)), 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(UInt256): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(materialize(toUInt256(toNullable(toUInt128(3)))), time, 2))) = 0, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(2, 57, POWER(toUInt256(2), 3, 2), time)), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 29 out of 1000 WITH ( SELECT event_time_microseconds, POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if('ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if('ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 30 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 31 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY power(toLowCardinality(3), 2) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY power(toLowCardinality(3), 2) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY power(toLowCardinality(3), 2) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 32 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 33 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 34 out of 1000 WITH ( SELECT event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 35 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 36 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 37 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 38 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 39 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 40 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 41 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Got boring AST Fuzzing step 43 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, event_time ASC LIMIT 65537 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, event_time ASC LIMIT 65537) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, event_time ASC LIMIT 65537) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 44 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Got boring AST Fuzzing step 45 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 46 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(1)), time.2)) = materialize(0), toLowCardinality(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(1)), time.2)) = materialize(0), toLowCardinality(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(1)), time.2)) = materialize(0), toLowCardinality(toFixedString('ok', 2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 47 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Got boring AST Fuzzing step 48 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Got boring AST Fuzzing step 49 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toFixedString('ok', toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT toString(toUInt128(2), 57, POWER(2, toNullable(toNullable(57)), toLowCardinality(3), 2), time), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toFixedString('ok', toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT toString(toUInt128(2), 57, POWER(2, toNullable(toNullable(57)), toLowCardinality(3), 2), time), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 4, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toFixedString('ok', toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT toString(toUInt128(2), 57, POWER(2, toNullable(toNullable(57)), toLowCardinality(3), 2), time), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 50 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', toUInt256(2))), toString(time)) Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', toUInt256(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', toUInt256(2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', toUInt256(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 52 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', toUInt256(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', toUInt256(2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok', toUInt256(2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 53 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', toUInt256(2))), toString(time)) Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', toUInt256(2))), toString(time)) Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1023 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(toNullable(toUInt256(3)), time)) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1023) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(toNullable(toUInt256(3)), time)) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0)': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 58 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', 2, toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 59 out of 1000 EXPLAIN AST optimize = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'EXPLAIN AST optimize = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 60 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 61 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 62 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, power(toLowCardinality(toNullable(3)), 2), 1)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, power(toLowCardinality(toNullable(3)), 2), 1)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, power(toLowCardinality(toNullable(3)), 2), 1)), toDateTime(time.2)) = 0, toFixedString(toNullable('ok'), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 63 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 64 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(3, 2), time, 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(3, 2), time, 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(3, 2), time, 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 65 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 69 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY toDateTime(tupleElement(time, toLowCardinality(1))) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY toDateTime(tupleElement(time, toLowCardinality(1))) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY toDateTime(tupleElement(time, toLowCardinality(1))) ASC, event_time DESC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 70 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 72 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(toNullable(3)), time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(toNullable(3)), time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toNullable(toNullable(3)), time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945e4f 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 73 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 74 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString(toLowCardinality('ok'), 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(toNullable(3), toNullable(toNullable(2))), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(toNullable(3), toNullable(toNullable(2))), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(toNullable(3), toNullable(toNullable(2))), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 76 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString(toLowCardinality('ok'), 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), if(dateDiff('second', toDateTime(tupleElement(time, 'ok', toUInt128(1))), toDateTime(time.2)) = 0, toFixedString(toLowCardinality('ok'), 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), if(dateDiff('second', toDateTime(tupleElement(time, 'ok', toUInt128(1))), toDateTime(time.2)) = 0, toFixedString(toLowCardinality('ok'), 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), if(dateDiff('second', toDateTime(tupleElement(time, 'ok', toUInt128(1))), toDateTime(time.2)) = 0, toFixedString(toLowCardinality('ok'), 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 78 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString(toLowCardinality('ok'), 2), 2), toString(time)) Got boring AST Fuzzing step 79 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toLowCardinality('ok'), 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toLowCardinality('ok'), 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toLowCardinality('ok'), 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 80 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString(toLowCardinality('ok'), 2), 2), toString(time)) Got boring AST Fuzzing step 81 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 83 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 84 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 85 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 86 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 88 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1024 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1024) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 89 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 90 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) ORDER BY event_time DESC NULLS LAST LIMIT 65536 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) GROUP BY toLowCardinality(toUInt256(3)), POWER(3, 2), toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) ORDER BY event_time DESC NULLS LAST LIMIT 65536) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) GROUP BY toLowCardinality(toUInt256(3)), POWER(3, 2), toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) ORDER BY event_time DESC NULLS LAST LIMIT 65536) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 20. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 91 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) PREWHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) PREWHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) PREWHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 92 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)) = pow(materialize(toUInt128(3)), toNullable(2)), materialize(toLowCardinality(toUInt128(3))) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)), 1)), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)) = pow(materialize(toUInt128(3)), toNullable(2)), materialize(toLowCardinality(toUInt128(3))) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)), 1)), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY dateDiff(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(time.2)) = pow(materialize(toUInt128(3)), toNullable(2)), materialize(toLowCardinality(toUInt128(3))) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 31. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce Fuzzing step 93 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 94 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 95 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString(2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString(2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString(2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 96 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2, 2), toString(toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2, 2), toString(toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2, 2), toString(toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 97 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 98 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 99 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1048575 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1048575) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 100 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, materialize(toUInt128(2)), event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), toNullable(toUInt256(2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, materialize(toUInt128(2)), event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), toNullable(toUInt256(2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, materialize(toUInt128(2)), event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), toNullable(toUInt256(2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 101 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 102 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 103 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 104 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toUInt128(1) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toUInt128(1) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toUInt128(1) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 105 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 WITH ( SELECT event_time_microseconds, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 100 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 100) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 108 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1025 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1025) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 109 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(toString(power(POWER(2), 3, 2), time), time.1)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toString(power(POWER(2), 3, 2), time), time.1)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toString(power(POWER(2), 3, 2), time), time.1)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 110 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 111 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 112 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 1)), toDateTime(time.2)) = toLowCardinality(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 1)), toDateTime(time.2)) = toLowCardinality(0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDat. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 113 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 114 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 115 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 117 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 118 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 119 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 120 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 121 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 122 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 123 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 124 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 125 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 126 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 127 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 128 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 129 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 130 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 131 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 132 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 133 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 134 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 135 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 136 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 137 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 138 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 139 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 140 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 141 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 142 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 143 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 144 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(POW(toNullable(materialize(toUInt256(0), 3)), 2), power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)), 0), toFixedString(toFixedString(toLowCardinality('ok'), 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(POW(toNullable(materialize(toUInt256(0), 3)), 2), power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)), 0), toFixedString(toFixedString(toLowCardinality('ok'), 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(POW(toNullable(materialize(toUInt256(0), 3)), 2), power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)), 0), toFixedString(toFixedString(toLowCardinality('ok'), 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 145 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 146 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 147 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 148 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 149 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 150 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 151 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 152 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 153 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 154 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 155 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 156 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 157 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 158 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 159 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 160 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 161 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 162 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 163 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 164 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 165 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 166 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 167 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 168 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 169 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 170 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 171 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 172 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 173 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 174 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 175 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 176 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 177 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 178 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 179 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 180 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 181 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 182 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 183 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 184 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 185 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 186 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 187 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 188 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 189 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 190 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 191 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 192 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 193 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 194 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 195 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 100, toString(toUInt128(57), POWER(3, 2), time), toString(toLowCardinality(57), POWER(toUInt256(3), 2), time), dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 100, toString(toUInt128(57), POWER(3, 2), time), toString(toLowCardinality(57), POWER(toUInt256(3), 2), time), dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 100, toString(toUInt128(57), POWER(3, 2), time), toString(toLowCardinality(57), POWER(toUInt256(3), 2), time), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 196 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 197 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 198 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 199 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 200 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 201 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 202 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 203 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 204 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 205 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 206 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 207 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 208 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 209 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 210 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 211 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 212 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 213 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 214 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 215 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 216 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 217 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 218 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 219 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 220 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 221 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 222 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 223 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 224 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 225 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 226 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 227 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 228 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 229 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 230 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 231 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 232 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 233 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 234 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 235 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 236 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 237 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 238 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 239 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 240 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 241 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 242 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 243 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 244 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 245 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 246 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 247 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 248 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 249 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 250 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 251 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 252 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 253 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 254 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 255 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 256 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 257 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 258 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 259 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 260 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 261 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 262 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 263 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 264 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 265 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 266 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 267 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 268 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 269 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 270 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 271 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 272 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 273 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 274 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 275 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY materialize(toFixedString(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 56)), POWER(POW(3, materialize(2)), 2), event_time_microseconds, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(if(dateDiff('second', toDateTime(tupleElement(time, pow(3, 2), 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), tupleElement(time, toNullable(1))), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY materialize(toFixedString(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 56)), POWER(POW(3, materialize(2)), 2), event_time_microseconds, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(if(dateDiff('second', toDateTime(tupleElement(time, pow(3, 2), 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), tupleElement(time, toNullable(1))), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log GROUP BY materialize(toFixedString(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 56)), POWER(POW(3, materialize(2)), 2), event_time_microseconds, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(if(dateDiff('second', toDateTime(tupleElement(time, pow(3, 2), 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), tupleElement(time, toNullable(1))), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 276 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 277 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 278 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 279 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT -2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT -2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 280 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 281 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 282 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 283 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 284 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 285 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 286 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 287 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 288 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 289 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 290 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 291 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 292 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 293 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 294 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 295 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 296 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 297 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 298 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 299 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 300 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 301 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 302 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 303 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 304 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 305 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 306 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 307 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 308 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 309 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 310 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 311 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 312 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 313 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 314 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 315 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 316 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 317 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 318 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 319 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 320 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 321 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 322 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 323 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 324 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 325 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 326 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(POW(3, 2), 2), 0), toFixedString(POW(materialize(3), 2), toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(POW(3, 2), 2), 0), toFixedString(POW(materialize(3), 2), toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(POW(3, 2), 2), 0), toFixedString(POW(materialize(3), 2), toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 327 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 328 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 329 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 330 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 331 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 332 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 333 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 334 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 335 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 336 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toNullable(0)), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toNullable(0)), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toNullable(0)), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 337 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 338 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 339 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 340 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 341 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 342 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 343 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 344 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE pow(toNullable(3), toNullable(toNullable(2))) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE pow(toNullable(3), toNullable(toNullable(2))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE pow(toNullable(3), toNullable(toNullable(2))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 345 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 346 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 347 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 348 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 349 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 350 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 351 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 352 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 353 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 354 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 355 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 356 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 358 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 359 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 360 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 361 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 362 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 363 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 364 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 365 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 366 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 367 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(time.2)), 0), toFixedString('ok', 2, toNullable(toUInt256(2))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(time.2)), 0), toFixedString('ok', 2, toNullable(toUInt256(2))), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(time.2)), 0), toFixedString('ok', 2, toNullable(toUInt256(2))), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 368 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 369 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 370 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 371 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 372 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 373 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 374 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 375 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 376 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 377 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 378 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 379 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 380 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 381 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 382 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 383 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 384 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 385 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 386 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 387 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 388 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 389 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 390 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 391 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 392 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toFixedString('ok', toUInt128(2)), toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, toNullable(2)), 2), 3, materialize(toNullable(2))), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toFixedString('ok', toUInt128(2)), toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, toNullable(2)), 2), 3, materialize(toNullable(2))), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toFixedString('ok', toUInt128(2)), toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, toNullable(2)), 2), 3, materialize(toNullable(2))), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 393 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 394 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 395 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 396 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 397 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 398 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 399 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 400 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 401 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 402 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 403 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 404 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 405 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 406 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 407 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 408 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 409 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 410 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 411 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 412 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 413 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 414 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 415 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 416 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 417 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 418 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 419 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 420 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 421 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 422 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 423 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 424 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 425 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 426 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 427 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 428 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 429 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 430 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 431 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 432 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 433 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 434 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 435 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 436 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 437 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 438 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 439 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 440 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 441 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 442 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 443 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 444 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 445 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 446 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 447 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 448 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 449 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 450 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 451 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), materialize(toLowCardinality(toUInt256(2)))), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), materialize(toLowCardinality(toUInt256(2)))), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), materialize(toLowCardinality(toUInt256(2)))), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 452 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 453 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 454 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 455 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 456 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 457 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 458 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 459 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 460 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 461 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 462 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 463 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 464 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 465 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 466 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 467 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 468 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 469 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 470 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 471 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 472 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 473 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 474 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 475 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 476 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 477 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 478 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 10 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(POWER(POW(toNullable(materialize(3)), materialize(2)), 2), 3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 10) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(POWER(POW(toNullable(materialize(3)), materialize(2)), 2), 3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': 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 (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 10) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(POWER(POW(toNullable(materialize(3)), materialize(2)), 2), 3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f8a2f 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 479 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 480 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 481 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 482 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 483 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 484 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 485 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 486 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2)), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toNullable(toFixedString('ok', 2)), 2, toLowCardinality(toLowCardinality(toNullable(3))), toNullable(toUInt128(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2)), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toNullable(toFixedString('ok', 2)), 2, toLowCardinality(toLowCardinality(toNullable(3))), toNullable(toUInt128(2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2)), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toNullable(toFixedString('ok', 2)), 2, toLowCardinality(toLowCardinality(toNullable(3))), toNullable(toUInt128(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 487 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 488 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 489 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 490 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 491 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 492 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 493 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 494 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 495 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 496 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 497 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 498 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 499 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 500 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 501 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 502 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 503 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 504 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 505 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 506 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 507 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 508 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 509 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 510 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 511 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 512 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 513 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 514 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 515 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 516 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 517 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 518 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 520 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 521 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 522 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 523 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 524 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 525 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 526 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 527 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 528 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 529 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 530 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 531 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 532 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 533 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 534 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 535 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 536 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 537 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 538 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 539 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 540 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 541 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 542 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 543 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 544 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 545 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 546 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 547 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 548 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 549 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 550 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 551 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 552 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 553 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 554 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 555 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 556 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 557 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 558 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 559 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 561 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 562 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 563 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 564 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 565 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 566 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 567 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 568 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 569 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 570 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 571 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 572 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 573 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 574 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 576 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 577 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 578 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 580 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 581 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 582 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 583 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 584 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 585 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 586 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 587 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE toString(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, toNullable(2)), 2), 3, 2), time), dateDiff('second', toDateTime(tupleElement(toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), time, 1)), toDateTime(time.2)), toLowCardinality(0)), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE toString(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, toNullable(2)), 2), 3, 2), time), dateDiff('second', toDateTime(tupleElement(toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), time, 1)), toDateTime(time.2)), toLowCardinality(0)), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE toString(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toNullable(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, toNullable(2)), 2), 3, 2), time), dateDiff('second', toDateTime(tupleElement(toString(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), time, 1)), toDateTime(time.2)), toLowCardinality(0)), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 588 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 589 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 590 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString(materialize(toNullable('ok')), 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString(materialize(toNullable('ok')), 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString(materialize(toNullable('ok')), 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 591 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), POWER(3, 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), POWER(3, 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), POWER(3, 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 592 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 593 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 594 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 595 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 596 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 597 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 598 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 599 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 600 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 601 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 602 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 603 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 604 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 605 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 606 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 607 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 608 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 609 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 610 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 611 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 612 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 613 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 614 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 615 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 616 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 617 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 618 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 619 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 620 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 621 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 622 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 623 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 624 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 625 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 626 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 627 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 628 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 629 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 630 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 631 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 632 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 633 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 65535 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 65535) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 65535) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 634 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 635 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 637 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 638 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 639 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 640 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 641 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 642 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 643 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 644 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 645 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 646 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 647 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 648 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 649 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 650 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 651 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 652 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 653 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 654 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 655 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 656 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 657 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 658 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 659 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 660 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 662 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 663 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 664 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 665 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), POW(3, materialize(toNullable(2))), '01473_trace_log_table_event_start_time_microseconds_test' Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), POW(3, materialize(toNullable(2))), '01473_trace_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(2)))), time), POW(3, materialize(toNullable(2))), '01473_trace_log_table_event_start_time_microseconds_test'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 666 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 667 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 668 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 669 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 670 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 671 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 672 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 673 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 674 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 675 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 676 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time) = dateDiff('second', toDateTime(toNullable(toUInt256(2)), time.1), toDateTime(time.2)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time) = dateDiff('second', toDateTime(toNullable(toUInt256(2)), time.1), toDateTime(time.2)), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time) = dateDiff('second', toDateTime(toNullable(toUInt256(2)), time.1), toDateTime(time.2)), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 677 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 678 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 679 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 680 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 681 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 682 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 683 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 684 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 685 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 686 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 687 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 688 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 689 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 690 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 691 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 692 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 693 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 694 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 695 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 696 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 698 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 699 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, materialize(2)), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, materialize(2)), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, materialize(2)), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 700 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 701 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 702 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 703 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 704 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff(if(dateDiff(toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)), 'second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY POWER(2, 3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(2))), time)), if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), 2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff(if(dateDiff(toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)), 'second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY POWER(2, 3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(2))), time)), if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), 2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 3, 2), 2), 3, 2), time), dateDiff(if(dateDiff(toDateTime(time.1), toDateTime(tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)), 'second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) GROUP BY POWER(2, 3), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(2))), time)), if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(if(dateDiff('second', toDateTime(time.1), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), 2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 705 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 706 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 707 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 708 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 709 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 710 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 711 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 712 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 713 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 715 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 716 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 717 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 718 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 719 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 720 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 721 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 722 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 723 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 724 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 725 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 726 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 727 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 728 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 729 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 730 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 731 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 732 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 733 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 734 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 735 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 736 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 737 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 738 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 739 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 740 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 741 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 742 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 743 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 744 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 745 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 746 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 747 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 748 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 749 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 750 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 751 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 752 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 753 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 754 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 755 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 756 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 757 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 758 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 759 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 760 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 761 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 762 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 763 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 764 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 766 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 767 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 769 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 770 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 771 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 772 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 773 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 774 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 775 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 776 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 777 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 778 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 779 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 780 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 781 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 782 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 783 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 784 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 785 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 786 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 787 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 788 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 789 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 790 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 791 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 792 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 793 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 794 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 795 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 796 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 797 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 798 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 800 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 801 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 802 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 803 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), pow(materialize(3), toNullable(2)), 2), 3, 2), time), dateDiff(toLowCardinality(toNullable('second')), toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), pow(materialize(3), toNullable(2)), 2), 3, 2), time), dateDiff(toLowCardinality(toNullable('second')), toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), pow(materialize(3), toNullable(2)), 2), 3, 2), time), dateDiff(toLowCardinality(toNullable('second')), toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 804 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 805 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 806 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 807 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 808 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 809 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 810 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 811 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 812 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 813 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 815 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 816 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 817 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 818 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 819 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 820 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 821 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 822 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt256(57))), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt256(57))), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt256(57))), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString('ok', 2), 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 823 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 824 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 825 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 826 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 827 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 828 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 829 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 831 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 832 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 833 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 834 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 835 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality(2))))), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 836 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 837 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 838 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 839 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 840 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 842 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 843 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 844 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 845 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 846 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 847 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 848 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 849 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 850 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 851 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 852 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 853 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 855 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 856 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 857 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 858 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 859 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 860 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 861 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 862 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 863 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 864 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 865 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 866 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 867 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 868 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 869 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 870 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 871 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 872 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 873 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 874 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 2), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 2), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 2), time), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 875 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 876 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 877 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 878 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 879 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 880 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 881 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time) = 0, toFixedString(toFixedString(2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time) = 0, toFixedString(toFixedString(2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(toString(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time) = 0, toFixedString(toFixedString(2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 882 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 883 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 884 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 885 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 886 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 887 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 888 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 889 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 890 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 891 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 892 out of 1000 WITH ( SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(3), materialize(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(3), materialize(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 4, should be 2: In scope WITH (SELECT event_time_microseconds FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(3), materialize(57)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 893 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 894 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 895 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 896 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 897 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 898 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 899 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 900 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 901 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 902 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 903 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 904 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 905 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 906 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 907 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(toFixedString(toFixedString('ok', toLowCardinality(2)), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(toFixedString(toFixedString('ok', toLowCardinality(2)), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(toFixedString(toFixedString('ok', toLowCardinality(2)), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 908 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 909 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 910 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 911 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 912 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 913 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 914 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 915 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 916 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 917 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 918 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 919 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POW(3, materialize(2)), POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(toUInt256(3)))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POW(3, materialize(2)), POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(toUInt256(3)))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POW(3, materialize(2)), POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(toUInt256(3)))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 920 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 921 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 922 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 923 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 924 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 925 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 926 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 927 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 928 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 929 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 930 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 931 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 932 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 933 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 934 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 935 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 936 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 937 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 938 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 939 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 940 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 941 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 942 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 943 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 944 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 945 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', toLowCardinality(2)), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', toLowCardinality(2)), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', toLowCardinality(2)), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 946 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 947 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 948 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 949 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 950 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 951 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 952 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 953 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 954 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 955 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 956 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 957 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 958 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 959 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 960 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 961 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 962 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 963 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 964 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 965 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 966 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 967 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 968 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 969 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(toNullable(2), time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(toNullable(2), time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(toNullable(2), time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 970 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 971 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 972 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 973 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 975 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 976 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 977 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 978 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 979 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(PO. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 980 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 981 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 982 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 983 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 984 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 985 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 986 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 987 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 988 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 989 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 991 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 992 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 993 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 994 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 995 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 996 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: While processing if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(toString(pow(pow(pow(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 19. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 20. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 21. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 22. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 23. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 24. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 25. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 26. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 27. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 30. ./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&) @ 0x000000001773fb78 31. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 Fuzzing step 997 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 998 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 999 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), 3, 2), time), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 2 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 3 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 4 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 5 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 6 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 7 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)) Error on processing query 'SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(56)). In query SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 8 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 9 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 10 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 11 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 12 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 13 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 14 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 15 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 16 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 17 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 18 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 19 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 20 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 21 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 22 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test') Error on processing query 'SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(String). In query SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 23 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 24 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 25 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 26 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 27 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 28 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE dateDiff('second', toDateTime(time.1), POWER(materialize(toLowCardinality(3)), 2), toDateTime(tupleElement(time, 2))) = materialize(toNullable(0)) Error on processing query 'SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE dateDiff('second', toDateTime(time.1), POWER(materialize(toLowCardinality(3)), 2), toDateTime(tupleElement(time, 2))) = materialize(toNullable(0))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_text_log_table_event_start_time_microseconds_test' WHERE dateDiff('second', toDateTime(time.1), POWER(materialize(toLowCardinality(3)), 2), toDateTime(time.2)) = materialize(toNullable(0)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 29 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 30 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 31 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 32 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 33 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 34 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 35 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 36 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 37 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 38 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 39 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 40 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 41 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' GROUP BY tupleElement(time, 2), toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time), pow(3, materialize(2)), dateDiff('second', materialize(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56))), toDateTime(time.1), toDateTime(time.2)) = 0 Error on processing query 'SELECT '01473_text_log_table_event_start_time_microseconds_test' GROUP BY tupleElement(time, 2), toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time), pow(3, materialize(2)), dateDiff('second', materialize(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56))), toDateTime(time.1), toDateTime(time.2)) = 0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_text_log_table_event_start_time_microseconds_test' GROUP BY time.2, toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time), pow(3, materialize(2)), dateDiff('second', materialize(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56))), toDateTime(time.1), toDateTime(time.2)) = 0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 42 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 43 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 44 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 45 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 46 out of 1000 SELECT '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 47 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), '01473_text_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 49 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 50 out of 1000 SELECT materialize('01473_query_log_table_event_start_time_microseconds_test', 56), '01473_text_log_table_event_start_time_microseconds_test' Error on processing query 'SELECT materialize('01473_query_log_table_event_start_time_microseconds_test', 56), '01473_text_log_table_event_start_time_microseconds_test'': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize('01473_query_log_table_event_start_time_microseconds_test', 56), '01473_text_log_table_event_start_time_microseconds_test'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 51 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 52 out of 1000 SELECT materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 53 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), '01473_text_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 55 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 56 out of 1000 SELECT toFixedString(materialize('01473_query_log_table_event_start_time_microseconds_test'), 56), '01473_text_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), '01473_text_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, '01473_text_log_table_event_start_time_microseconds_test' Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 60 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 61 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 62 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, '01473_text_log_table_event_start_time_microseconds_test' Got boring AST Fuzzing step 63 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 65 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 66 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 67 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 68 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 69 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 70 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 71 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 72 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 73 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 74 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 75 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 76 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 77 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 78 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 80 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 1048576 Error on processing query 'SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 81 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE -2 GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(if(equals(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), tupleElement(2))), toNullable(0)), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), 2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)), toNullable(materialize(3)), toNullable(0), toLowCardinality(materialize(toLowCardinality(3))), pow(materialize(3), toLowCardinality(toNullable(2))) Error on processing query 'SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE -2 GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(if(equals(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), tupleElement(2))), toNullable(0)), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), 2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)), toNullable(materialize(3)), toNullable(0), toLowCardinality(materialize(toLowCardinality(3))), pow(materialize(3), toLowCardinality(toNullable(2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE -2 GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(if(equals(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), tupleElement(2))), toNullable(0)), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), 2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)), toNullable(materialize(3)), toNullable(0), toLowCardinality(materialize(toLowCardinality(3))), pow(materialize(3), toLowCardinality(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 82 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 83 out of 1000 EXPLAIN PIPELINE compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Error on processing query 'EXPLAIN PIPELINE compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 84 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 PREWHERE toUInt256(toNullable(POWER(POW(3, 2), 2), 2)) WHERE 100 Error on processing query 'SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 PREWHERE toUInt256(toNullable(POWER(POW(3, 2), 2), 2)) WHERE 100': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 PREWHERE toUInt256(toNullable(POWER(POW(3, 2), 2), 2)) WHERE 100. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 85 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 86 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE -9223372036854775808 Error on processing query 'SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE -9223372036854775808': Received from localhost:9000. DB::Exception: Illegal type Int64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 87 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 89 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 90 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 91 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 92 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 93 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE -2147483648 Error on processing query 'SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE -2147483648': Received from localhost:9000. DB::Exception: Illegal type Int32 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 94 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 WHERE 100 Got boring AST Fuzzing step 95 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 97 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)) Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toLowCardinality(56) Got boring AST Fuzzing step 100 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toLowCardinality(56) Got boring AST Fuzzing step 101 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 103 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 105 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 106 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 107 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 108 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 109 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 112 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 118 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 119 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 GROUP BY toLowCardinality(toFixedString(2)), toString(2, 57, POWER(POW(toLowCardinality(3), 2), 2, materialize(3)), time) Error on processing query 'SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 GROUP BY toLowCardinality(toFixedString(2)), toString(2, 57, POWER(POW(toLowCardinality(3), 2), 2, materialize(3)), time)': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 GROUP BY toLowCardinality(toFixedString(2)), toString(2, 57, POWER(POW(toLowCardinality(3), 2), 2, materialize(3)), time). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 120 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 121 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 122 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 123 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 124 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 125 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 126 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 127 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 PREWHERE POWER(3, toLowCardinality(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2)) Error on processing query 'SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 PREWHERE POWER(3, toLowCardinality(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 PREWHERE POWER(3, toLowCardinality(POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 128 out of 1000 SELECT if(equals(dateDiff('second', toDateTime(tupleElement(time, materialize(toUInt128(1)))), toDateTime(tupleElement(time, 2))), toNullable(toNullable('second')), toNullable(toUInt128(0))), toFixedString(toNullable(2)), toString(time)), '01473_query_log_table_event_start_time_microseconds_test', 56 Error on processing query 'SELECT if(equals(dateDiff('second', toDateTime(tupleElement(time, materialize(toUInt128(1)))), toDateTime(tupleElement(time, 2))), toNullable(toNullable('second')), toNullable(toUInt128(0))), toFixedString(toNullable(2)), toString(time)), '01473_query_log_table_event_start_time_microseconds_test', 56': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(equals(dateDiff('second', toDateTime(tupleElement(time, materialize(toUInt128(1)))), toDateTime(time.2)), toNullable(toNullable('second')), toNullable(toUInt128(0))), toFixedString(toNullable(2)), toString(time)), '01473_query_log_table_event_start_time_microseconds_test', 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 129 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 130 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 131 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 133 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 134 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 135 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 136 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 137 out of 1000 SELECT POWER(materialize(toLowCardinality(2)), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT POWER(materialize(toLowCardinality(2)), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 139 out of 1000 SELECT POWER(materialize(toLowCardinality(2)), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 140 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 142 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 143 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 144 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 145 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 146 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 147 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 148 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 149 out of 1000 SELECT POWER(toLowCardinality(2), toUInt256(3)), '01473_query_log_table_event_start_time_microseconds_test', 56 GROUP BY POWER(POW(3, 2), 2), pow(toLowCardinality(2)), POW(3, materialize(2)), toFixedString(toNullable('ok'), toUInt128(2)) Error on processing query 'SELECT POWER(toLowCardinality(2), toUInt256(3)), '01473_query_log_table_event_start_time_microseconds_test', 56 GROUP BY POWER(POW(3, 2), 2), pow(toLowCardinality(2)), POW(3, materialize(2)), toFixedString(toNullable('ok'), toUInt128(2))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(toLowCardinality(2), toUInt256(3)), '01473_query_log_table_event_start_time_microseconds_test', 56 GROUP BY POWER(POW(3, 2), 2), pow(toLowCardinality(2)), POW(3, materialize(2)), toFixedString(toNullable('ok'), toUInt128(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 150 out of 1000 EXPLAIN PIPELINE SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT POWER(toLowCardinality(2), 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 153 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 155 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 156 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 157 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 158 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56 Got boring AST Fuzzing step 159 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT POWER(2, 3), materialize('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Error on processing query 'SELECT POWER(2, 3), materialize('01473_query_log_table_event_start_time_microseconds_test', 56), 56': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(2, 3), materialize('01473_query_log_table_event_start_time_microseconds_test', 56), 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 161 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 162 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 163 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 GROUP BY toNullable(materialize(0)), toLowCardinality('ok', toUInt256(2)) Error on processing query 'SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 GROUP BY toNullable(materialize(0)), toLowCardinality('ok', toUInt256(2))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 GROUP BY toNullable(materialize(0)), toLowCardinality('ok', toUInt256(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 164 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 165 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 166 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 167 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 168 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 169 out of 1000 SELECT POWER(2, 3), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56 Got boring AST Fuzzing step 170 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 172 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 173 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 174 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 175 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 176 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 PREWHERE dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0 Error on processing query 'SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 PREWHERE dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 PREWHERE dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 177 out of 1000 SELECT POWER(toLowCardinality('ok'), 2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Error on processing query 'SELECT POWER(toLowCardinality('ok'), 2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(toLowCardinality('ok'), 2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 178 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 179 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 180 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 WHERE POW(materialize(3), 2) Error on processing query 'SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 WHERE POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Illegal type Float64 of column pow(materialize(3_UInt8), 2_UInt8) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 181 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 PREWHERE POWER(materialize(2), 3) Error on processing query 'SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 PREWHERE POWER(materialize(2), 3)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 182 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 183 out of 1000 SELECT POWER(2, 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Got boring AST Fuzzing step 184 out of 1000 SELECT POWER(toUInt128(2), 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56 Error on processing query 'SELECT POWER(toUInt128(2), 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POWER(toUInt128(2), 3), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 185 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 187 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 188 out of 1000 EXPLAIN PIPELINE header = true SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Error on processing query 'EXPLAIN PIPELINE header = true SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 189 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 190 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 191 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 192 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 193 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 194 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, 56 Got boring AST Fuzzing step 195 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 197 out of 1000 SELECT POWER(2, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Error on processing query 'SELECT POWER(2, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56)': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(2, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 198 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 199 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 200 out of 1000 SELECT POWER(2, 3), '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 201 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 203 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 204 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 205 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 206 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 208 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 209 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 210 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 EXPLAIN ESTIMATE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 214 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 217 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 218 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 219 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 220 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 221 out of 1000 EXPLAIN PIPELINE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 222 out of 1000 EXPLAIN SYNTAX SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 EXPLAIN AST SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 (''01473_query_log_table_event_start_time_microseconds_test''): '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56). Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 225 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 227 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 228 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 229 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 230 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 231 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 232 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 233 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 234 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 235 out of 1000 EXPLAIN SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 238 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 239 out of 1000 EXPLAIN QUERY TREE SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 240 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 242 out of 1000 EXPLAIN PIPELINE compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Error on processing query 'EXPLAIN PIPELINE compact = true SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56)': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 243 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56) Got boring AST Fuzzing step 244 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 246 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 247 out of 1000 SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)), '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) PREWHERE toLowCardinality(2) Error on processing query 'SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)), '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) PREWHERE toLowCardinality(2)': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(2, 3), time)), '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) PREWHERE toLowCardinality(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 248 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 249 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 250 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 251 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 252 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 253 out of 1000 SELECT '01473_query_log_table_event_start_time_microseconds_test', toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 254 out of 1000 SELECT toNullable(toNullable('second')), toNullable('01473_query_log_table_event_start_time_microseconds_test'), toUInt128(56), toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT toNullable(toNullable('second')), toNullable('01473_query_log_table_event_start_time_microseconds_test'), toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 256 out of 1000 SELECT toNullable('second'), toNullable('01473_query_log_table_event_start_time_microseconds_test'), toUInt128(56), toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT toNullable('second'), toNullable('01473_query_log_table_event_start_time_microseconds_test'), toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 258 out of 1000 SELECT toNullable('second'), toNullable('01473_query_log_table_event_start_time_microseconds_test'), toUInt128(56), toLowCardinality(56) PREWHERE toLowCardinality(toUInt128(3)) Error on processing query 'SELECT toNullable('second'), toNullable('01473_query_log_table_event_start_time_microseconds_test'), toUInt128(56), toLowCardinality(56) PREWHERE toLowCardinality(toUInt128(3))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 259 out of 1000 SELECT toNullable('second'), toNullable('01473_query_log_table_event_start_time_microseconds_test'), toUInt128(56), toLowCardinality(56) Got boring AST Fuzzing step 260 out of 1000 SELECT toNullable('second'), toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT toNullable('second'), toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56, toLowCardinality(56) Got boring AST Fuzzing step 262 out of 1000 SELECT toNullable('second'), toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56, toLowCardinality(56) Got boring AST Fuzzing step 263 out of 1000 SELECT 'second', toNullable('01473_query_log_table_event_start_time_microseconds_test', 56), 56, toLowCardinality(56) GROUP BY POWER(toLowCardinality(toNullable(3)), 2), toNullable(toUInt128(0)), POWER(materialize(3), 2), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, materialize('ok'), toString(time)), POW(materialize(3), 2) Error on processing query 'SELECT 'second', toNullable('01473_query_log_table_event_start_time_microseconds_test', 56), 56, toLowCardinality(56) GROUP BY POWER(toLowCardinality(toNullable(3)), 2), toNullable(toUInt128(0)), POWER(materialize(3), 2), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, materialize('ok'), toString(time)), POW(materialize(3), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT 'second', toNullable('01473_query_log_table_event_start_time_microseconds_test', 56), 56, toLowCardinality(56) GROUP BY POWER(toLowCardinality(toNullable(3)), 2), toNullable(toUInt128(0)), POWER(materialize(3), 2), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, materialize('ok'), toString(time)), POW(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 264 out of 1000 SELECT toNullable('second'), toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56, toLowCardinality(56) Got boring AST Fuzzing step 265 out of 1000 SELECT toNullable('second'), toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56, toLowCardinality(56) Got boring AST Fuzzing step 266 out of 1000 SELECT toNullable('second'), toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56, toLowCardinality(56) Got boring AST Fuzzing step 267 out of 1000 SELECT toNullable('second'), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56, toLowCardinality(56) Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT toNullable('second'), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 56, 56 Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT toNullable('second'), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT toNullable('second'), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Got boring AST Fuzzing step 271 out of 1000 SELECT toNullable('second'), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Got boring AST Fuzzing step 272 out of 1000 SELECT toNullable(toNullable('second')), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT toNullable(toNullable(toFixedString('second', 6))), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT toNullable(toNullable(toFixedString('second', 6))), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 WHERE POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, materialize(toNullable(2))) Error on processing query 'SELECT toNullable(toNullable(toFixedString('second', 6))), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 WHERE POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, materialize(toNullable(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT toNullable(toNullable(toFixedString('second', 6))), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 WHERE POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, materialize(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 275 out of 1000 SELECT toNullable(toFixedString('second', 6)), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT toNullable(toFixedString('second', 6)), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Got boring AST Fuzzing step 277 out of 1000 SELECT toNullable('second', 6), toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56, 56, 56 Error on processing query 'SELECT toNullable('second', 6), toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56, 56, 56': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable('second', 6), toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56, 56, 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 278 out of 1000 SELECT toFixedString('second', 6), toFixedString(toNullable(toUInt256(toNullable(2)), '01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56 Error on processing query 'SELECT toFixedString('second', 6), toFixedString(toNullable(toUInt256(toNullable(2)), '01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toFixedString('second', 6), toFixedString(toNullable(toUInt256(toNullable(2)), '01473_query_log_table_event_start_time_microseconds_test'), 56), 56, 56. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 279 out of 1000 SELECT toNullable(toFixedString('second', 6)) Query succeeded, using this AST as a start Fuzzing step 280 out of 1000 SELECT toNullable(toFixedString('second', 6)) Got boring AST Fuzzing step 281 out of 1000 SELECT toNullable(toFixedString('second', 6)) Got boring AST Fuzzing step 282 out of 1000 SELECT toFixedString('second', 6) Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 284 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 285 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 286 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 287 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 288 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 289 out of 1000 SELECT toFixedString('second', 6) GROUP BY toNullable(materialize(toNullable(3))), if(dateDiff('second', toDateTime(pow(materialize(3), toNullable(2)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)) Error on processing query 'SELECT toFixedString('second', 6) GROUP BY toNullable(materialize(toNullable(3))), if(dateDiff('second', toDateTime(pow(materialize(3), toNullable(2)), tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toFixedString('second', 6) GROUP BY toNullable(materialize(toNullable(3))), if(dateDiff('second', toDateTime(pow(materialize(3), toNullable(2)), time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toUInt256(2))), time)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 290 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 291 out of 1000 SELECT toFixedString('second', 6) Got boring AST Fuzzing step 292 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 EXPLAIN PIPELINE SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 EXPLAIN SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN AST SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 296 out of 1000 EXPLAIN AST SELECT 'second', 6 Got boring AST Fuzzing step 297 out of 1000 EXPLAIN AST SELECT 'second', 6 Got boring AST Fuzzing step 298 out of 1000 EXPLAIN SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 EXPLAIN SELECT 'second', 6 Got boring AST Fuzzing step 300 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Got boring AST Fuzzing step 302 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Got boring AST Fuzzing step 303 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'second', 6 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'second', 6': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''second''): 'second', 6. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 304 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'second', 6 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'second', 6': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 (''second''): 'second', 6. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 'second', 6 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 'second', 6': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 (''second''): 'second', 6. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 306 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Got boring AST Fuzzing step 307 out of 1000 EXPLAIN AST SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 EXPLAIN QUERY TREE SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 EXPLAIN QUERY TREE SELECT 'second', 6 Got boring AST Fuzzing step 310 out of 1000 EXPLAIN QUERY TREE SELECT 'second', 6 Got boring AST Fuzzing step 311 out of 1000 EXPLAIN QUERY TREE SELECT 'second', 6 Got boring AST Fuzzing step 312 out of 1000 SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 314 out of 1000 SELECT toNullable('second'), 6 Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT 'second', 6 PREWHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2))) Error on processing query 'SELECT 'second', 6 PREWHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 'second', 6 PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 317 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 318 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 319 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 320 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 321 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 322 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 323 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 324 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 325 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 326 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 327 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 328 out of 1000 SELECT 'second', materialize(toLowCardinality(toUInt128(6))) Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 SELECT 'second', materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))) Error on processing query 'SELECT 'second', materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 'second', materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 330 out of 1000 SELECT 'second', materialize(toLowCardinality(toUInt128(6))) Got boring AST Fuzzing step 331 out of 1000 SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) Got boring AST Fuzzing step 333 out of 1000 SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) Got boring AST Fuzzing step 334 out of 1000 SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) Got boring AST Fuzzing step 335 out of 1000 SELECT toLowCardinality('second'), materialize(toUInt128(6)) WHERE POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2) Error on processing query 'SELECT toLowCardinality('second'), materialize(toUInt128(6)) WHERE POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT toLowCardinality('second'), materialize(toUInt128(6)) WHERE POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 336 out of 1000 SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) GROUP BY dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), tupleElement(time, toUInt128(1)) Error on processing query 'SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) GROUP BY dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), tupleElement(time, toUInt128(1))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) GROUP BY dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), tupleElement(time, toUInt128(1)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 337 out of 1000 SELECT toLowCardinality('second'), materialize(toLowCardinality(toUInt128(6))) Got boring AST Fuzzing step 338 out of 1000 SELECT toLowCardinality('second'), materialize(toLowCardinality(6)) WHERE toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test') Error on processing query 'SELECT toLowCardinality('second'), materialize(toLowCardinality(6)) WHERE toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(String). In query SELECT toLowCardinality('second'), materialize(toLowCardinality(6)) WHERE toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 339 out of 1000 SELECT toLowCardinality('second'), toLowCardinality(toUInt128(6)) Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT POWER(POW(toFixedString(toUInt128(3), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), toLowCardinality('second'), toLowCardinality(toUInt128(6)) Error on processing query 'SELECT POWER(POW(toFixedString(toUInt128(3), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), toLowCardinality('second'), toLowCardinality(toUInt128(6))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(toFixedString(toUInt128(3), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2), toLowCardinality('second'), toLowCardinality(toUInt128(6)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 341 out of 1000 SELECT toLowCardinality('second'), toLowCardinality(toUInt128(6)) Got boring AST Fuzzing step 342 out of 1000 SELECT 'second', toUInt128(6) Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT 'second', 6 GROUP BY toUInt128(6), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time)), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), if(dateDiff('second', toDateTime(tupleElement(materialize(toUInt256(57)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)) Error on processing query 'SELECT 'second', 6 GROUP BY toUInt128(6), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time)), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), if(dateDiff('second', toDateTime(tupleElement(materialize(toUInt256(57)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 'second', 6 GROUP BY toUInt128(6), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time)), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), if(dateDiff('second', toDateTime(tupleElement(materialize(toUInt256(57)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 344 out of 1000 SELECT 'second', toUInt128(6) Got boring AST Fuzzing step 345 out of 1000 SELECT 'second', toUInt128(power(toNullable(3), toLowCardinality(2)), 6) Error on processing query 'SELECT 'second', toUInt128(power(toNullable(3), toLowCardinality(2)), 6)': 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 'second', toUInt128(power(toNullable(3), toLowCardinality(2)), 6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f8a2f 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 346 out of 1000 SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 EXPLAIN PIPELINE header = true SELECT 'second', 6 Error on processing query 'EXPLAIN PIPELINE header = true SELECT 'second', 6': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 348 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 349 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 350 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 351 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 352 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 353 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 354 out of 1000 SELECT 'second', 6 GROUP BY POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(2)), 2), POWER(POW(3, 2)) Error on processing query 'SELECT 'second', 6 GROUP BY POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(2)), 2), POWER(POW(3, 2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 'second', 6 GROUP BY POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(2)), 2), POWER(POW(3, 2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 355 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 356 out of 1000 EXPLAIN PIPELINE SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 EXPLAIN PIPELINE SELECT 'second', 6 Got boring AST Fuzzing step 358 out of 1000 EXPLAIN PIPELINE SELECT 'second', 6 Got boring AST Fuzzing step 359 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'second', 6 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'second', 6': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''second''): 'second', 6. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 361 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Got boring AST Fuzzing step 362 out of 1000 EXPLAIN SYNTAX SELECT 'second', 6 Got boring AST Fuzzing step 363 out of 1000 SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 SELECT 'second', materialize(6) Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 SELECT 'second', materialize(6) Got boring AST Fuzzing step 366 out of 1000 EXPLAIN PIPELINE SELECT 'second', materialize(6) Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 EXPLAIN PIPELINE SELECT 'second', materialize(6) Got boring AST Fuzzing step 368 out of 1000 EXPLAIN PIPELINE SELECT 'second', materialize(6) Got boring AST Fuzzing step 369 out of 1000 EXPLAIN PIPELINE SELECT 'second', materialize(6) Got boring AST Fuzzing step 370 out of 1000 EXPLAIN PIPELINE SELECT 'second', materialize(6) Got boring AST Fuzzing step 371 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'second', materialize(6) Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'second', materialize(6)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''second''): 'second', materialize(6). Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 372 out of 1000 EXPLAIN SYNTAX SELECT 'second', materialize(6) Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 EXPLAIN SYNTAX SELECT 'second', materialize(6) Got boring AST Fuzzing step 374 out of 1000 EXPLAIN ESTIMATE SELECT 'second', materialize(6) Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 EXPLAIN ESTIMATE SELECT 'second', materialize(6) Got boring AST Fuzzing step 376 out of 1000 EXPLAIN ESTIMATE SELECT 'second', materialize(6) Got boring AST Fuzzing step 377 out of 1000 EXPLAIN AST SELECT 'second', materialize(6) Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 EXPLAIN AST SELECT 'second', materialize(6) Got boring AST Fuzzing step 379 out of 1000 SELECT 'second', materialize(6) Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT 'second', materialize(6) Got boring AST Fuzzing step 381 out of 1000 SELECT 'second', 6 Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 383 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 384 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 385 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 386 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 387 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 388 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 389 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 390 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 391 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 392 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 393 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 394 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 395 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 396 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 397 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 398 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 399 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 400 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 401 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 402 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 403 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 404 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 405 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 406 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 407 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 408 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 409 out of 1000 SELECT 'second', 6 WHERE toUInt128(toNullable(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(materialize(2)), 3), time)), toUInt256(3))) Error on processing query 'SELECT 'second', 6 WHERE toUInt128(toNullable(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(materialize(2)), 3), time)), toUInt256(3)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 'second', 6 WHERE toUInt128(toNullable(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(materialize(2)), 3), time)), toUInt256(3))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 410 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 411 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 412 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 413 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 414 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 415 out of 1000 EXPLAIN PIPELINE header = true SELECT 'second', 6 Error on processing query 'EXPLAIN PIPELINE header = true SELECT 'second', 6': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 416 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 'second', 6 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 'second', 6': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 (''second''): 'second', 6. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 417 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 418 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 419 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 420 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 421 out of 1000 SELECT 'second', 6 Got boring AST Fuzzing step 422 out of 1000 SELECT materialize(toUInt256(toUInt128(3))), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT materialize(toUInt256(3)), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 426 out of 1000 SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 427 out of 1000 SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 428 out of 1000 SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 429 out of 1000 SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 430 out of 1000 SELECT toUInt256(0, 3), 'second', 6 Error on processing query 'SELECT toUInt256(0, 3), 'second', 6': 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(0, 3), 'second', 6. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780e86c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 431 out of 1000 SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 432 out of 1000 SELECT 3, 'second', 6 PREWHERE power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2) Error on processing query 'SELECT 3, 'second', 6 PREWHERE power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT 3, 'second', 6 PREWHERE power(POWER(POW(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 433 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 435 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 437 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 438 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 439 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 440 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 441 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 442 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 443 out of 1000 EXPLAIN SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 447 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 448 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 449 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 450 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 451 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toUInt256(3), 'second', 6 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toUInt256(3), 'second', 6': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toUInt256'): toUInt256(3), 'second', 6. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 452 out of 1000 EXPLAIN AST SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 EXPLAIN AST SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 454 out of 1000 EXPLAIN AST SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 455 out of 1000 EXPLAIN AST SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 456 out of 1000 EXPLAIN SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 EXPLAIN SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 458 out of 1000 EXPLAIN SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 459 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 461 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 462 out of 1000 EXPLAIN AST SELECT toUInt256(3), 'second', 6 Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 EXPLAIN AST SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 464 out of 1000 EXPLAIN AST SELECT toUInt256(3), 'second', 6 Got boring AST Fuzzing step 465 out of 1000 SELECT 3 Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT 3 Got boring AST Fuzzing step 467 out of 1000 SELECT 3 Got boring AST Fuzzing step 468 out of 1000 SELECT 3 Got boring AST Fuzzing step 469 out of 1000 SELECT 3 Got boring AST Fuzzing step 470 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('3'): 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 471 out of 1000 SELECT 3 Got boring AST Fuzzing step 472 out of 1000 SELECT 3 Got boring AST Fuzzing step 473 out of 1000 SELECT 3 Got boring AST Fuzzing step 474 out of 1000 SELECT 3 Got boring AST Fuzzing step 475 out of 1000 EXPLAIN QUERY TREE SELECT 3 Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 EXPLAIN PIPELINE SELECT 3 Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 EXPLAIN SYNTAX SELECT 3 Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 479 out of 1000 EXPLAIN ESTIMATE SELECT 3 Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 EXPLAIN SYNTAX SELECT 3 Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 482 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 483 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 484 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 485 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 486 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('3'): 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 487 out of 1000 EXPLAIN ESTIMATE SELECT 3 Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('3'): 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 489 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 490 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 491 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 492 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 493 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 494 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 495 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 496 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 497 out of 1000 EXPLAIN AST SELECT 3 Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('3'): 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 499 out of 1000 EXPLAIN SYNTAX SELECT 3 Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 501 out of 1000 EXPLAIN SYNTAX SELECT 3 Got boring AST Fuzzing step 502 out of 1000 EXPLAIN AST SELECT 3 Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 EXPLAIN SELECT 3 Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 EXPLAIN SELECT 3 Got boring AST Fuzzing step 505 out of 1000 EXPLAIN SELECT 3 Got boring AST Fuzzing step 506 out of 1000 EXPLAIN SELECT 3 Got boring AST Fuzzing step 507 out of 1000 EXPLAIN ESTIMATE SELECT 3 Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 509 out of 1000 EXPLAIN ESTIMATE SELECT 3 Got boring AST Fuzzing step 510 out of 1000 EXPLAIN SELECT 3 Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 EXPLAIN SELECT 3 Got boring AST Fuzzing step 512 out of 1000 EXPLAIN SELECT 3 Got boring AST Fuzzing step 513 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('3'): 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 514 out of 1000 EXPLAIN SELECT 3 Got boring AST Fuzzing step 515 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), toNullable('ok') Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), toNullable('ok') Got boring AST Fuzzing step 517 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), toNullable('ok') Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 'ok' Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 'ok' Got boring AST Fuzzing step 520 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 'ok' Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2) Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2) Got boring AST Fuzzing step 523 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2) Got boring AST Fuzzing step 524 out of 1000 SELECT toUInt256(3) PREWHERE toLowCardinality(toUInt256(toUInt128(3))) GROUP BY POWER(toLowCardinality(toUInt128(0), 2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2) Error on processing query 'SELECT toUInt256(3) PREWHERE toLowCardinality(toUInt256(toUInt128(3))) GROUP BY POWER(toLowCardinality(toUInt128(0), 2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2)': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toUInt256(3) PREWHERE toLowCardinality(toUInt256(toUInt128(3))) GROUP BY POWER(toLowCardinality(toUInt128(0), 2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 525 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString(toFixedString('ok', 2), 2) Error on processing query 'SELECT toUInt256(3) GROUP BY POWER(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString(toFixedString('ok', 2), 2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT toUInt256(3) GROUP BY POWER(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString(toFixedString('ok', 2), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 526 out of 1000 SELECT toUInt256(3) GROUP BY POWER(toLowCardinality(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT toUInt256(3) GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 'ok', 2 WITH CUBE Error on processing query 'SELECT toUInt256(3) GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt256(3) GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 528 out of 1000 SELECT toUInt256(3) GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toFixedString('ok', 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT toUInt256(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toFixedString('ok', 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT toUInt256(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toFixedString('ok', 2) WITH CUBE Got boring AST Fuzzing step 531 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toFixedString('ok', 2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toFixedString('ok', 2) WITH CUBE Got boring AST Fuzzing step 533 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(3)), '01473_trace_log_table_event_start_time_microseconds_test', toFixedString('ok', toNullable(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(3)), '01473_trace_log_table_event_start_time_microseconds_test', toFixedString('ok', toNullable(2)) WITH CUBE Got boring AST Fuzzing step 535 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(3)), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', 2 Error on processing query 'SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', 2': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 538 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 539 out of 1000 EXPLAIN indexes = true SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', toNullable(materialize(toUInt128(2))) WITH CUBE Error on processing query 'EXPLAIN indexes = true SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', toNullable(materialize(toUInt128(2))) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 540 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 541 out of 1000 SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 EXPLAIN `header, description` = true, optimize = true, sorting = true SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 'ok', toNullable(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) WITH CUBE Error on processing query 'EXPLAIN `header, description` = true, optimize = true, sorting = true SELECT 3 GROUP BY POWER(2, materialize(toNullable(3))), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 'ok', toNullable(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 543 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT 3 GROUP BY POWER(2, toNullable(3)), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 'ok', toNullable(2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT 3 GROUP BY POWER(2, toNullable(3)), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 'ok', toNullable(2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 545 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 548 out of 1000 EXPLAIN AST graph = true SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE Error on processing query 'EXPLAIN AST graph = true SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 549 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), '01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE WITH TOTALS Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), '01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), '01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE WITH TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 550 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 551 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 552 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(toNullable(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(toNullable(2)) WITH CUBE Got boring AST Fuzzing step 554 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 'ok', toNullable(toNullable(2)) WITH CUBE Got boring AST Fuzzing step 555 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT 3 GROUP BY POWER(toNullable(2), 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toNullable(2), 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(toNullable(2), 3), toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 557 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 559 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 560 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 561 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 562 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 563 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 564 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 565 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 566 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 567 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 568 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 569 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 570 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 571 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 572 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 573 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 574 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 575 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 576 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 577 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 578 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 579 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 580 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 581 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 582 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 583 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 584 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 585 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 586 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 587 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 588 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 589 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 590 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 591 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 592 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 593 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 594 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 595 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 596 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 597 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 598 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 599 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 600 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 601 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 602 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 603 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 604 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 605 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 606 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 607 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 608 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 609 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 610 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 611 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 612 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 613 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 614 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 615 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 616 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 617 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 618 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 619 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 620 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 621 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 622 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 623 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 624 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 625 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 626 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 627 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 628 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 629 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 630 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 631 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 632 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 633 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 634 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 635 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 637 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 638 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 639 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 640 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 641 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 642 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 643 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 644 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 645 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 646 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 648 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 649 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 650 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 651 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 652 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 653 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 654 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 655 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 656 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH ROLLUP WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 181 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 657 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 659 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 660 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 662 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 663 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 664 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 665 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 666 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 667 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 668 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 669 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 670 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 671 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 672 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 673 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 674 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 676 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 677 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 678 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 679 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 680 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 681 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 682 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 684 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 685 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 686 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 687 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 689 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 691 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 692 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 693 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 694 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 695 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 696 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 697 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 698 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 699 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 700 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 701 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 702 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 703 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 704 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 706 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 707 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 708 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 709 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 710 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 711 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 712 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 713 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 715 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 717 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 718 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 719 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 720 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 721 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 722 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 723 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 724 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 725 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 726 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 727 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 728 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 729 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 730 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 731 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 732 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 733 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 734 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 735 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 736 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 737 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 738 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 739 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 740 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 741 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 742 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 743 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 744 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 745 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 746 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 747 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 748 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 749 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 750 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 751 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 752 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 753 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 754 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 755 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 756 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 757 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 758 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 759 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 760 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 761 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 762 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 763 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 764 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 765 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 766 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 768 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 769 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 770 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable(materialize('01473_trace_log_table_event_start_time_microseconds_test')), 56, 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable(materialize('01473_trace_log_table_event_start_time_microseconds_test')), 56, 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable(materialize('01473_trace_log_table_event_start_time_microseconds_test')), 56, 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 771 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 772 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 773 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 774 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 775 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 776 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 777 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 778 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 779 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 780 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 781 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 782 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 783 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 784 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 785 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 786 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 787 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 788 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 789 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 790 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 791 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 792 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 793 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 794 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 795 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 796 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 797 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 798 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 799 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 800 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 801 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 802 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 803 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 804 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 805 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 806 out of 1000 EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN QUERY TREE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 11. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 12. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 807 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 808 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 809 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 810 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 811 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 812 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 813 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 814 out of 1000 SELECT 3 GROUP BY POWER(toNullable(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toNullable(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(toNullable(2), 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 815 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 816 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 817 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 818 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 819 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 820 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 821 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 822 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 823 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 824 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 825 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 827 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 828 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 829 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 830 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 831 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 832 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 833 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 834 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 835 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 836 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 837 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument out of bounds: 2 (expected in range [1, 1]: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE: While processing SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, unsigned long&&) @ 0x0000000007714826 4. ./build_docker/./src/Interpreters/replaceForPositionalArguments.cpp:62: DB::replaceForPositionalArguments(std::shared_ptr&, DB::ASTSelectQuery const*, DB::ASTSelectQuery::Expression) @ 0x0000000018312bd4 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&) @ 0x000000001818af50 6. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1587: 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) @ 0x000000001818360b 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 @ 0x000000001817be4c 8. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 838 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 839 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 840 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 842 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 843 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 844 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 845 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 846 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 847 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 848 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 849 out of 1000 EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 850 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 851 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 852 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Got boring AST Fuzzing step 853 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 856 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 857 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT materialize(toLowCardinality(3)) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 SELECT materialize(toLowCardinality(3)) PREWHERE toNullable(toUInt256(3)) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT materialize(toLowCardinality(3)) PREWHERE toNullable(toUInt256(3)) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 860 out of 1000 SELECT materialize(toLowCardinality(3)) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT materialize(toLowCardinality(3)) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 862 out of 1000 SELECT materialize(toLowCardinality(3)) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 863 out of 1000 SELECT materialize(toLowCardinality(3)) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 864 out of 1000 SELECT materialize(toLowCardinality(3)) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 865 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toUInt128(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(toUInt128(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality(3) GROUP BY POWER(toUInt128(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 867 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 868 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 869 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), toFixedString('ok', 2), 2 WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), toFixedString('ok', 2), 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), toFixedString('ok', 2), 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 870 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 871 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 872 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 SELECT 3 PREWHERE toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57)), 3, 2), 2), 3, 2), time) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56), 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT 3 PREWHERE toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57)), 3, 2), 2), 3, 2), time) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56), 'ok', toNullable(2) 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 3 PREWHERE toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57)), 3, 2), 2), 3, 2), time) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 56), 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 875 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 876 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 877 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 878 out of 1000 SELECT 3 PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(57), time)) GROUP BY POWER(materialize(2), 3), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT 3 PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(57), time)) GROUP BY POWER(materialize(2), 3), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), toLowCardinality(56), 'ok', toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3 PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(57), time)) GROUP BY POWER(materialize(2), 3), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), toLowCardinality(56), 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 879 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 882 out of 1000 EXPLAIN QUERY TREE SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 EXPLAIN AST SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 EXPLAIN AST SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 885 out of 1000 EXPLAIN SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 888 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 889 out of 1000 SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 890 out of 1000 EXPLAIN SYNTAX SELECT toUInt128(3) GROUP BY POWER(toLowCardinality(toNullable(2)), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 891 out of 1000 SELECT toUInt128(3) GROUP BY POWER(toNullable(2), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT toUInt128(POWER(3, 2), 3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT toUInt128(POWER(3, 2), 3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE': 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(POWER(3, 2), 3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 894 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 895 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(toUInt128(2)) WITH CUBE Error on processing query 'SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(toUInt128(2)) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(toUInt128(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 896 out of 1000 SELECT toFixedString(2, toLowCardinality('ok'), 2), toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT toFixedString(2, toLowCardinality('ok'), 2), toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) 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(2, toLowCardinality('ok'), 2), toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 897 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 898 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize('ok'), toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 SELECT toUInt128(3) GROUP BY POWER(3), '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize('ok'), toNullable(2) WITH CUBE Error on processing query 'SELECT toUInt128(3) GROUP BY POWER(3), '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize('ok'), toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(3) GROUP BY POWER(3), '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize('ok'), toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 EXPLAIN PIPELINE SELECT toUInt128(3) GROUP BY POWER(2, toNullable(toLowCardinality(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize(toNullable('ok')), toNullable(materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), 2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE SELECT toUInt128(3) GROUP BY POWER(2, toNullable(toLowCardinality(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize(toNullable('ok')), toNullable(materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), 2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toUInt128(3) GROUP BY POWER(2, toNullable(toLowCardinality(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize(toNullable('ok')), toNullable(materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), 2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 901 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 902 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2), 57, POWER(2, 3), time)), 'ok'), 2 WITH CUBE Error on processing query 'SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2), 57, POWER(2, 3), time)), 'ok'), 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2), 57, POWER(2, 3), time)), 'ok'), 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 903 out of 1000 EXPLAIN PIPELINE compact = true SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize('ok'), toNullable(toUInt256(2)) WITH CUBE Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize('ok'), toNullable(toUInt256(2)) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 904 out of 1000 SELECT toUInt128(3) GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize('ok'), toNullable(2) WITH CUBE Got boring AST Fuzzing step 905 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT 3 GROUP BY POWER(2), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3 GROUP BY POWER(2), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 907 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 908 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 909 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 910 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Got boring AST Fuzzing step 911 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(toUInt128(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, toNullable(toUInt128(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, toNullable(toUInt128(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 912 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(2) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(2) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 913 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 914 out of 1000 SELECT 3 GROUP BY GROUPING SETS ( (POWER(2, toNullable(3))), ('01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56)), ('ok', toNullable(2))) WITH CUBE Error on processing query 'SELECT 3 GROUP BY GROUPING SETS ((POWER(2, toNullable(3))), ('01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56)), ('ok', toNullable(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 915 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, toFixedString('ok', 2), toNullable(toNullable(2)) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, toFixedString('ok', 2), toNullable(toNullable(2)) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, toFixedString('ok', 2), toNullable(toNullable(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 916 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Got boring AST Fuzzing step 921 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 EXPLAIN ESTIMATE SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Got boring AST Fuzzing step 923 out of 1000 EXPLAIN PIPELINE SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 EXPLAIN AST SELECT 3 GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Got boring AST Fuzzing step 926 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toLowCardinality(56)), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(toNullable(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', toNullable(materialize(2)) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 930 out of 1000 SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(materialize(2)) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(materialize(2)) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', toNullable(materialize(2)) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 931 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), toNullable(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', materialize(2) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toLowCardinality(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(toLowCardinality(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 934 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 936 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 937 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 938 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(pow(3, materialize(toFixedString(POWER(materialize(2), 3), materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 2)), 2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toLowCardinality(pow(3, materialize(toFixedString(POWER(materialize(2), 3), materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 2)), 2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(toLowCardinality(pow(3, materialize(toFixedString(POWER(materialize(2), 3), materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 2)), 2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 939 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 940 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 941 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3 GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 943 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 944 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 945 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 946 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 947 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 948 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3 GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 949 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), toUInt256(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toLowCardinality(2), toUInt256(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 3 GROUP BY POWER(toLowCardinality(2), toUInt256(3)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 950 out of 1000 SELECT materialize(toLowCardinality(toNullable(3))) GROUP BY POWER(2, materialize(toUInt128(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'SELECT materialize(toLowCardinality(toNullable(3))) GROUP BY POWER(2, materialize(toUInt128(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT materialize(toLowCardinality(toNullable(3))) GROUP BY POWER(2, materialize(toUInt128(3))), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 951 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 953 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 954 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 955 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(3) PREWHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH ROLLUP WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT toLowCardinality(3) PREWHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH ROLLUP WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 299 ('CUBE'): CUBE. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 956 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 958 out of 1000 EXPLAIN AST SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 EXPLAIN SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 EXPLAIN SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 962 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('toLowCardinality'): toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', m. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 963 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 965 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 966 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('toLowCardinality'): toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', m. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 967 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 968 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 970 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 971 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 972 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 973 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2)), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 976 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 977 out of 1000 SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(3) GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 978 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(toLowCardinality(2), 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 980 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 982 out of 1000 EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Error on processing query 'EXPLAIN SYNTAX SELECT 3 GROUP BY POWER(3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: While processing pow(3): While processing SELECT 3 GROUP BY pow(3), toLowCardinality(56) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 14. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActionsNoMakeSet(std::shared_ptr const&, DB::ActionsDAG&, bool) @ 0x000000001772693c 15. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::analyzeAggregation(DB::ActionsDAG&) @ 0x0000000017724724 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x00000000177227aa 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) @ 0x0000000017dcfe78 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 @ 0x0000000017db0c6e 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 21. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 23. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 24. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 25. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 26. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 28. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 983 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', materialize(2) WITH CUBE Got boring AST Fuzzing step 984 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), 'ok', 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 985 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(56), materialize(toNullable('ok')), materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), materialize(2) WITH CUBE Got boring AST Fuzzing step 988 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 989 out of 1000 SELECT 3 PREWHERE 56 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), materialize(2) WITH CUBE Error on processing query 'SELECT 3 PREWHERE 56 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 990 out of 1000 SELECT 3 PREWHERE POWER(toUInt256(2), 3, 2) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable('ok')), materialize(2) WITH CUBE Error on processing query 'SELECT 3 PREWHERE POWER(toUInt256(2), 3, 2) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable('ok')), materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3 PREWHERE POWER(toUInt256(2), 3, 2) GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable('ok')), materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 991 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), materialize(toNullable('ok')), materialize(2) WITH CUBE Got boring AST Fuzzing step 992 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable('ok'), materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT 3 PREWHERE toDateTime(tupleElement(time, toUInt128(1))) GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable('ok'), materialize(2) WITH CUBE Error on processing query 'SELECT 3 PREWHERE toDateTime(tupleElement(time, toUInt128(1))) GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable('ok'), materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3 PREWHERE toDateTime(tupleElement(time, toUInt128(1))) GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable('ok'), materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 994 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable(toFixedString('ok', 2)), 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable(toFixedString('ok', 2)), 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable(toFixedString('ok', 2)), 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 995 out of 1000 EXPLAIN PIPELINE header = true SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(56)), toNullable('ok'), materialize(2) WITH CUBE Error on processing query 'EXPLAIN PIPELINE header = true SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(56)), toNullable('ok'), materialize(2) WITH CUBE': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 996 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable('ok'), 2 WITH CUBE Error on processing query 'SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable('ok'), 2 WITH CUBE': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56), toNullable('ok'), 2 WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 997 out of 1000 SELECT 3 GROUP BY POWER(2, 3), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(56)), toNullable('ok'), materialize(2) WITH CUBE Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT toUInt256(56), 3 GROUP BY POWER(2), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE Error on processing query 'SELECT toUInt256(56), 3 GROUP BY POWER(2), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toUInt256(56), 3 GROUP BY POWER(2), toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(56)), 'ok', materialize(2) WITH CUBE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 999 out of 1000 SELECT 3 GROUP BY POWER(2, 3), '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(56)), toNullable('ok'), materialize(2) WITH CUBE 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 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 2 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 4 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 6 out of 1000 EXPLAIN PIPELINE compact = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE compact = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 7 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Argument at index 0 for function dateDiff must be constant. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x0000000007b6b086 4. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008714a94 5. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 6. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 7. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 8. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 10. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 11. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 12. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 13. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e12af7 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 8 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 9 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 10 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)), 2))), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)), 2))), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime64(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)), 2))), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945e4f 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 11 out of 1000 WITH ( SELECT event_time_microseconds, pow(toLowCardinality(3), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 WITH ( SELECT event_time_microseconds, pow(toLowCardinality(3), 2), event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = materialize(0), 'ok', toNullable(2), toString(time)), current_database, currentDatabase()) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT toString(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = toNullable(0), time), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toLowCardinality('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(toLowCardinality(3), 2), event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = materialize(0), 'ok', toNullable(2), toString(time)), current_database, currentDatabase()) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT toString(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = toNullable(0), time), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, toLowCardinality('ok'), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, pow(toLowCardinality(3), 2), event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = materialize(0), 'ok', toNullable(2), toString(time)), current_database, currentDatabase()) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 26. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 13 out of 1000 WITH ( SELECT event_time_microseconds, pow(toLowCardinality(3), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1025 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toNullable(toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(toLowCardinality(3), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1025) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toNullable(toNullable(2))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 14 out of 1000 WITH ( SELECT event_time_microseconds, pow(toLowCardinality(3), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 17 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 20 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 22 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 24 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 26 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 27 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 29 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 30 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 31 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 32 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 33 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 34 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 35 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 36 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 37 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 38 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 41 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 43 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 44 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT '21474836.48' ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT '21474836.48') AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual '21474836.48'. In scope (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT '21474836.48') AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x0000000007b6672c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f3938 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 45 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) GROUP BY 2 Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) GROUP BY 2': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) GROUP BY 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 46 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE materialize(toNullable(toUInt128(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 3))) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE materialize(toNullable(toUInt128(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 3))) GROUP BY toNullable(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 WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE materialize(toNullable(toUInt128(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 3))) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 47 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 48 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 49 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(toNullable(3)), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) ASC, event_time ASC NULLS FIRST LIMIT 3 ) AS time SELECT pow(materialize(toNullable(3)), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57) ASC, event_time ASC NULLS FIRST LIMIT 3) AS time SELECT pow(materialize(toNullable(3)), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 51 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 EXPLAIN AST graph = true WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY 2 Error on processing query 'EXPLAIN AST graph = true WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(3), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 53 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 54 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(3), toNullable(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 55 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 57 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(pow(3, 2)) ORDER BY toLowCardinality('ok', toUInt256(2)) ASC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(pow(3, 2)) ORDER BY toLowCardinality('ok', toUInt256(2)) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(pow(3, 2)) ORDER BY toLowCardinality('ok', toUInt256(2)) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 58 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1024 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1024) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 59 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(materialize(3))), toUInt256(toNullable(3)) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(toDateTime(tupleElement(time, toLowCardinality(materialize(0), 2))), 3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(materialize(3))), toUInt256(toNullable(3)) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(toDateTime(tupleElement(time, toLowCardinality(materialize(0), 2))), 3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(materialize(3))), toUInt256(toNullable(3)) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 60 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 61 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POWER(POW(3, toLowCardinality(toNullable(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), toUInt256(2)))))) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), 3), toNullable(2)), if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY toNullable(toUInt256(2)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POWER(POW(3, toLowCardinality(toNullable(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), toUInt256(2)))))) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), 3), toNullable(2)), if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY toNullable(toUInt256(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POWER(POW(3, toLowCardinality(toNullable(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), toUInt256(2)))))) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 62 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 255 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 255) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 63 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 64 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(3, toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(POW(materialize(power(toNullable(3), toNullable(2)), 3), 2), time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(3, toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(POW(materialize(power(toNullable(3), toNullable(2)), 3), 2), time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(3, toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(POW(materialize(power(toNullable(3), toNullable(2)), 3), 2), time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 65 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 66 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(56) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(56) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(56) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 68 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2)) ORDER BY event_time ASC NULLS FIRST LIMIT -2 ) AS time SELECT pow(materialize(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2)) ORDER BY event_time ASC NULLS FIRST LIMIT -2) AS time SELECT pow(materialize(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2)) ORDER BY event_time ASC NULLS FIRST LIMIT -2) AS time SELECT pow(materialize(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 69 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log PREWHERE tupleElement(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log PREWHERE tupleElement(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(toNullable(2)) WITH TOTALS': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log PREWHERE tupleElement(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 70 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(toString(toString(57, POW(3, toNullable(2)), POWER(materialize(3), 2), time), POWER(POW(2)), time), time)) GROUP BY toNullable(toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(toString(toString(57, POW(3, toNullable(2)), POWER(materialize(3), 2), time), POWER(POW(2)), time), time)) GROUP BY toNullable(toNullable(2))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(materialize(3), toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toUInt256(2)))) = 0, 'ok', toString(toString(toString(57, POW(3, toNullable(2)), POWER(materialize(3), 2), time), POWER(POW(2)), time), time)) GROUP BY toNullable(toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 71 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(3, 2), if(equals(0), 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT pow(3, 2), if(equals(0), 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT pow(3, 2), if(equals(0), 'ok', toString(time)) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 73 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT pow(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)) PREWHERE toFixedString('ok', toLowCardinality(2)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)) PREWHERE toFixedString('ok', toLowCardinality(2)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT pow(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)) PREWHERE toFixedString('ok', toLowCardinality(2)) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 74 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(3, 2) GROUP BY 2 Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT pow(3, 2) GROUP BY 2': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT pow(3, 2) GROUP BY 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 75 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(57, 3, 2), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT pow(57, 3, 2), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT pow(57, 3, 2), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 76 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 77 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toNullable(2) Got boring AST Fuzzing step 78 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time DESC NULLS LAST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 83 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 84 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 86 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 87 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 88 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 89 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Column `event_time_microseconds` is not under aggregate function and not in GROUP BY. Have columns: ['toNullable(\'01473_metric_log_table_event_start_time_microseconds_test\')']: While processing event_time_microseconds, pow(3, 2), event_time: While processing (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time: While processing WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTIdentifier const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776522e 5. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:713: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764a36 6. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e24c 7. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 8. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 9. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 11. ./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&) @ 0x000000001773fb78 12. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 13. ./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 @ 0x0000000017db1e81 14. ./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) @ 0x0000000017daa783 15. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da64e6 16. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:259: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000017e865f4 17. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:154: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e842a6 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr&, DB::SelectQueryOptions&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions&) @ 0x0000000017f1920a 19. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:0: DB::getQueryInterpreter(DB::ASTSubquery const&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f18522 20. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:0: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f13a3e 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::ExecuteScalarSubqueriesMatcher::visit(std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f137ec 22. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017f12e8d 23. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017f13019 24. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017f13024 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1551: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x000000001818417b 26. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1392: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001817ec76 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 28. ./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) @ 0x0000000017daa783 29. ./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) @ 0x0000000017da634c 30. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 Fuzzing step 90 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 91 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 92 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 93 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 94 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 95 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Column `event_time_microseconds` is not under aggregate function and not in GROUP BY. Have columns: ['toNullable(\'01473_metric_log_table_event_start_time_microseconds_test\')']: While processing event_time_microseconds, pow(3, 2), event_time: While processing (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time: While processing WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTIdentifier const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776522e 5. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:713: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764a36 6. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e24c 7. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 8. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 9. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 11. ./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&) @ 0x000000001773fb78 12. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 13. ./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 @ 0x0000000017db1e81 14. ./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) @ 0x0000000017daa783 15. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da64e6 16. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:259: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000017e865f4 17. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:154: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e842a6 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr&, DB::SelectQueryOptions&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions&) @ 0x0000000017f1920a 19. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:0: DB::getQueryInterpreter(DB::ASTSubquery const&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f18522 20. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:0: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f13a3e 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::ExecuteScalarSubqueriesMatcher::visit(std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f137ec 22. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017f12e8d 23. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017f13019 24. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017f13024 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1551: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x000000001818417b 26. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1392: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001817ec76 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 28. ./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) @ 0x0000000017daa783 29. ./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) @ 0x0000000017da634c 30. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 Fuzzing step 96 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Column `event_time_microseconds` is not under aggregate function and not in GROUP BY. Have columns: ['toNullable(\'01473_metric_log_table_event_start_time_microseconds_test\')']: While processing event_time_microseconds, pow(3, 2), event_time: While processing (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time: While processing WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTIdentifier const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776522e 5. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:713: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764a36 6. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e24c 7. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 8. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 9. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 11. ./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&) @ 0x000000001773fb78 12. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 13. ./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 @ 0x0000000017db1e81 14. ./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) @ 0x0000000017daa783 15. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da64e6 16. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:259: DB::InterpreterSelectWithUnionQuery::buildCurrentChildInterpreter(std::shared_ptr const&, std::vector> const&) @ 0x0000000017e865f4 17. ./build_docker/./src/Interpreters/InterpreterSelectWithUnionQuery.cpp:154: DB::InterpreterSelectWithUnionQuery::InterpreterSelectWithUnionQuery(std::shared_ptr const&, std::shared_ptr, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e842a6 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:0: std::__unique_if::__unique_single std::make_unique[abi:v15007]&, std::shared_ptr&, DB::SelectQueryOptions&>(std::shared_ptr&, std::shared_ptr&, DB::SelectQueryOptions&) @ 0x0000000017f1920a 19. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:0: DB::getQueryInterpreter(DB::ASTSubquery const&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f18522 20. ./build_docker/./src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp:0: DB::ExecuteScalarSubqueriesMatcher::visit(DB::ASTSubquery const&, std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f13a3e 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::ExecuteScalarSubqueriesMatcher::visit(std::shared_ptr&, DB::ExecuteScalarSubqueriesMatcher::Data&) @ 0x0000000017f137ec 22. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017f12e8d 23. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017f13019 24. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017f13024 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:1551: DB::(anonymous namespace)::executeScalarSubqueries(std::shared_ptr&, std::shared_ptr, unsigned long, std::map, std::allocator>>&, std::map, std::allocator>>&, bool, bool) @ 0x000000001818417b 26. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1392: DB::TreeRewriter::analyzeSelect(std::shared_ptr&, DB::TreeRewriterResult&&, DB::SelectQueryOptions const&, std::vector> const&, std::vector> const&, std::shared_ptr) const @ 0x000000001817ec76 27. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 28. ./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) @ 0x0000000017daa783 29. ./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) @ 0x0000000017da634c 30. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 Fuzzing step 97 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 99 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 100 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 101 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808) AS time SELECT pow(3, 2) GROUP BY toNullable(2)': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 102 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 105 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time ASC NULLS FIRST LIMIT -9223372036854775808 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Got boring AST Fuzzing step 107 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time ASC NULLS FIRST LIMIT 10 ) AS time SELECT pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time ASC NULLS FIRST LIMIT 10 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY toNullable(2) Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time ASC NULLS FIRST LIMIT 10 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 10 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 10 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Got boring AST Fuzzing step 112 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 10 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) WHERE POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2) GROUP BY 2 Error on processing query 'WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 10) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) WHERE POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2) GROUP BY 2': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 10) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) WHERE POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2) GROUP BY 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 113 out of 1000 WITH ( SELECT event_time_microseconds, pow(3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 10 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Got boring AST Fuzzing step 114 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(toUInt128(3)), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT -9223372036854775808 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(toUInt128(power(toLowCardinality(3), toNullable(3), materialize(2)), 3)), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT -9223372036854775808 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 7 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 EXPLAIN `header, description` = true, json = true WITH ( SELECT event_time_microseconds, pow(power(toLowCardinality(3), toNullable(3), materialize(2)), 3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 7 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Error on processing query 'EXPLAIN `header, description` = true, json = true WITH (SELECT event_time_microseconds, pow(power(toLowCardinality(3), toNullable(3), materialize(2)), 3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY '01473_metric_log_table_event_start_time_microseconds_test' ORDER BY event_time DESC NULLS LAST LIMIT 7) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 118 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC NULLS LAST LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(power(toLowCardinality(3), 3, materialize(2)), 3), 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC NULLS LAST LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC NULLS LAST LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Got boring AST Fuzzing step 123 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(toLowCardinality(3), 3, 2), 3, toNullable(2)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(toUInt256(3), 2) GROUP BY 2 Error on processing query 'WITH (SELECT event_time_microseconds, pow(power(toLowCardinality(3), 3, 2), 3, toNullable(2)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC LIMIT -2147483648) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(toUInt256(3), 2) GROUP BY 2': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, pow(power(toLowCardinality(3), 3, 2), 3, toNullable(2)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC LIMIT -2147483648) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(toUInt256(3), 2) GROUP BY 2. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 124 out of 1000 WITH ( SELECT event_time_microseconds, pow(materialize(power(toLowCardinality(toNullable(3)), 3, 2), 3), 2), event_time FROM system.query_thread_log PREWHERE toFixedString(2, toLowCardinality('ok'), 2) WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC NULLS FIRST LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY 2 Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString(2, toLowCardinality('ok'), 2) WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time DESC NULLS FIRST LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(toLowCardinality(3), 3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok', 2) WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY toUInt128(2) Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(toLowCardinality(3), 3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok', 2) WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', pow(3, 2) GROUP BY toUInt128(2) Got boring AST Fuzzing step 128 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok', 2) WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok', 2) WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS FIRST LIMIT -2147483648 ) AS time SELECT pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok', 2) WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS FIRST LIMIT -2147483648 ) AS time SELECT pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(2))) Got boring AST Fuzzing step 131 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Got boring AST Fuzzing step 133 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, pow(materialize(toNullable(3)), toNullable(2)), 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) WITH TOTALS Error on processing query 'WITH (SELECT event_time_microseconds, pow(power(3, pow(materialize(toNullable(3)), toNullable(2)), 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648) AS time SELECT pow(3, materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 134 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(pow(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(pow(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(pow(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 135 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Got boring AST Fuzzing step 137 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) ORDER BY event_time ASC NULLS LAST LIMIT -2147483648) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase(). Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 138 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY event_time ASC NULLS LAST LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, 2), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY event_time ASC LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, toUInt128(2)), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY event_time DESC LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, toUInt128(2)), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY power(toNullable(toNullable(3)), 2) ASC NULLS FIRST, event_time DESC LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 WITH ( SELECT event_time_microseconds, pow(power(3, 2), 3, toUInt128(2)), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY power(toNullable(toNullable(3)), 2) ASC NULLS FIRST, event_time DESC LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Got boring AST Fuzzing step 143 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH ( SELECT event_time_microseconds, POWER(2, 3), pow(power(3, 2), 3, toUInt128(2)) FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY power(toNullable(toNullable(3)), 2) ASC, event_time DESC LIMIT -2147483648 ) AS time SELECT pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(materialize(toNullable(2))))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH (SELECT event_time_microseconds, POWER(2, 3), pow(power(3, 2), 3, toUInt128(2)) FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY power(toNullable(toNullable(3)), 2) ASC, event_time DESC LIMIT -2147483648) AS time SELECT pow(3, 2) GROUP BY GROUPING SETS ((toUInt128(materialize(toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 144 out of 1000 WITH ( SELECT event_time_microseconds, pow(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(63, time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), power(3, 2), 3, toUInt128(2)), event_time FROM system.query_thread_log PREWHERE toFixedString('ok') WHERE current_database = currentDatabase() GROUP BY GROUPING SETS (('01473_metric_log_table_event_start_time_microseconds_test')) WITH CUBE ORDER BY power(toNullable(toNullable(3)), 2) ASC NULLS FIRST, event_time DESC LIMIT -2147483648 ) AS time SELECT pow(3, materialize(2)) GROUP BY GROUPING SETS ((toUInt128(2))) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 145 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toString(2, 57, POWER(materialize(2), 3), time) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toString(2, 57, POWER(materialize(2), 3), time) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toString(2, 57, POWER(materialize(2), 3), time) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 147 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 148 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 149 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 150 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(materialize(3)) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(POWER(2, 3), time.1), toDateTime(time.2)) = materialize(toNullable(0)), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(materialize(3)) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(POWER(2, 3), time.1), toDateTime(time.2)) = materialize(toNullable(0)), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality(materialize(3)) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 151 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 152 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 153 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 154 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 155 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 156 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 158 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 57, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 57, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 57, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 160 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 161 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(3))), 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(3))), 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(3))), 1)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 162 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 163 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1048577 ) AS time SELECT if(dateDiff('second', toDateTime('01473_metric_log_table_event_start_time_microseconds_test', 57, time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1048577) AS time SELECT if(dateDiff('second', toDateTime('01473_metric_log_table_event_start_time_microseconds_test', 57, time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC N. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 164 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 165 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC N. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 166 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 167 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 170 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database) ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database) ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database) ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 171 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 173 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 174 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 175 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 178 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN `header, description` = true, json = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(materialize(57), time)) Error on processing query 'EXPLAIN `header, description` = true, json = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(materialize(57), time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 180 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toUInt128(0), 'ok', toString(time)) WHERE POWER(2, 3) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toUInt128(0), 'ok', toString(time)) WHERE POWER(2, 3)': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toUInt128(0), 'ok', toString(time)) WHERE POWER(2, 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 183 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', pow(toLowCardinality(3), 2), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', pow(toLowCardinality(3), 2), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', pow(toLowCardinality(3), 2), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 184 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 100 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 100) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 186 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time) ASC, event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 18. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 Fuzzing step 189 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) Got boring AST Fuzzing step 190 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable(toFixedString('ok', 2))), toString(time)) Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 192 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 9223372036854775807 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable(toFixedString('ok', 2))), toString(time)) Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 9223372036854775807) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable(toFixedString('ok', 2))), toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 193 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable(toFixedString('ok', 2)), toString(time)) Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(2)), POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), power(toNullable(3), 2) ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(2)), POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), power(toNullable(3), 2) ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(2)), POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), power(toNullable(3), 2) ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 22. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 195 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 65537 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable(toFixedString('ok', 2)), toString(time)) PREWHERE toNullable(56) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 65537) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable(toFixedString('ok', 2)), toString(time)) PREWHERE toNullable(56)': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 196 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 0 ) AS time SELECT if(dateDiff('second', toDateTime(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), time.1), toDateTime(tupleElement(time, toUInt128(2)))) = 0, toNullable(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), time.1), toDateTime(tupleElement(time, toUInt128(2)))) = 0, toNullable(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), time.1), toDateTime(tupleElement(time, toUInt128(2)))) = 0, toNullable(toFixedString('ok', 2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 197 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 198 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), POWER(2, 3), toLowCardinality(6, 'ok', toUInt256(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), POWER(2, 3), toLowCardinality(6, 'ok', toUInt256(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toNullable(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 3, should be 1: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), POWER(2, 3), toLowCardinality(6, 'ok', toUInt256(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 199 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = toNullable(toLowCardinality(toNullable(0))), toNullable(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = toNullable(toLowCardinality(toNullable(0))), toNullable(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = toNullable(toLowCardinality(toNullable(0))), toNullable(toFixedString('ok', 2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 200 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), equals(toNullable(0)), toNullable(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), equals(toNullable(0)), toNullable(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), equals(toNullable(0)), toNullable(toFixedString('ok', 2)), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 201 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), POW(materialize(3), 2), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) PREWHERE toFixedString('second', 6) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), POW(materialize(3), 2), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) PREWHERE toFixedString('second', 6)': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 3rd argument 'enddate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), POW(materialize(3), 2), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) PREWHERE toFixedString('second', 6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 203 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, 2)), time), POWER(POW(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, 2)), time), POWER(POW(2))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toString(2, 57, POWER(POW(3, 2)), time), POWER(POW(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 204 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), currentDatabase(), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), currentDatabase(), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), currentDatabase(), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 205 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) PREWHERE toUInt256(materialize(toNullable(3))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) PREWHERE toUInt256(materialize(toNullable(3)))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 206 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Argument at index 0 for function dateDiff must be constant. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x0000000007b6b086 4. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008714a94 5. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 6. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 7. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 8. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 10. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 11. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 12. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 13. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e12af7 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 207 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, power(POWER(POW(3, 2), 2), 3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), POWER(POW(2)), 2), time), POWER(POW(2)), time)), time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, power(POWER(POW(3, 2), 2), 3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), POWER(POW(2)), 2), time), POWER(POW(2)), time)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, power(POWER(POW(3, 2), 2), 3, 2), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 209 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(equals(toUInt128(toLowCardinality(toNullable(0))), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))), toNullable(0)), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time SELECT if(equals(toUInt128(toLowCardinality(toNullable(0))), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))), toNullable(0)), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time SELECT if(equals(toUInt128(toLowCardinality(toNullable(0))), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))), toNullable(0)), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 210 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 211 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT if(toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 212 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(materialize(toLowCardinality(56)), 0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(materialize(toLowCardinality(56)), 0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(materialize(toLowCardinality(56)), 0), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 214 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toLowCardinality(2), toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(materialize(2)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) GROUP BY toLowCardinality(2), toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(materialize(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, POWER(2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 28. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 215 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 216 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) PREWHERE POWER(2, 3) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) PREWHERE POWER(2, 3)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 218 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(toNullable(materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), 0)), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toNullable(materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), 0)), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(toNullable(materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), 0)), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 219 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = toNullable(0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = toNullable(0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = toNullable(0), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 220 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 221 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 224 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, `Null`, toLowCardinality(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, `Null`, toLowCardinality(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'Null' in scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, `Null`, toLowCardinality(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 228 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', 2, toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 229 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', 2, toString(time)) GROUP BY pow(toNullable(3), toNullable(toNullable(2))) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', 2, toString(time)) GROUP BY pow(toNullable(3), toNullable(toNullable(2)))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLo. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 231 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', 2, toString(tupleElement(time, toLowCardinality(1)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', 2, toString(tupleElement(time, toLowCardinality(1)), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toString'. Expected: String, got: Tuple(event_time_microseconds DateTime64(6), `POWER(2, toLowCardinality(3))` Float64, event_time DateTime): In scope WITH (SELECT event_time_microseconds, POWER(2, toLowCardinality(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', 2, toString(tupleElement(time, toLowCardinality(1)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 232 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase('01473_query_log_table_event_start_time_microseconds_test') ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase('01473_query_log_table_event_start_time_microseconds_test') ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase('01473_query_log_table_event_start_time_microseconds_test') ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 234 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(toNullable(2), tupleElement(time)), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), 2), toNullable(0)), toFixedString(toFixedString('ok', 2), 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toNullable(2), tupleElement(time)), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), 2), toNullable(0)), toFixedString(toFixedString('ok', 2), 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toNullable(2), tupleElement(time)), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), 2), toNullable(0)), toFixedString(toFixedString('ok', 2), 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 235 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE equals(power(toNullable(3), 2), current_database, currentDatabase()) ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', power(toLowCardinality(3), 2), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE equals(power(toNullable(3), 2), current_database, currentDatabase()) ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', power(toLowCardinality(3), 2), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE equals(power(toNullable(3), 2), current_database, currentDatabase()) ORDER BY toLowCardinality(0) ASC, event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 236 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 237 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 241 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 242 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 243 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 244 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 245 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 247 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 248 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 249 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 250 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 252 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 255 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 256 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 257 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 258 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 260 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 262 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 265 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 266 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 267 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 268 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 270 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 271 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 272 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 275 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 279 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 280 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 282 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 284 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 285 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 286 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 287 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Got boring AST Fuzzing step 289 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', toNullable(toNullable(3)), 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', toNullable(toNullable(3)), 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = materialize(toLowCardinality(0)), toFixedString(toFixedString('ok', toNullable(toNullable(3)), 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 292 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 WITH ( SELECT event_time_microseconds, POWER(materialize(2), 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(toNullable(2))))))) = toLowCardinality(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(materialize(2), 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(toNullable(2))))))) = toLowCardinality(0), toFixedString(toFixedString('ok', 2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, POWER(materialize(2), 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(toNullable(2))))))) = toLowCardinality(0), toFixedString(toFixedString('ok', 2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 294 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 296 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 65536 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), 'ok', 2, 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 65536) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), 'ok', 2, 2, toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 297 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT -2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT -2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 298 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)) Got boring AST Fuzzing step 299 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), 'ok', 2, 2, toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), 'ok', 2, 2, toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 5, should be 3: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), 'ok', 2, 2, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 300 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, toUInt128(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, toUInt128(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope (SELECT event_time_microseconds, POWER(2, toUInt128(3)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC, event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 301 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', toUInt128(2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toUInt128(2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toUInt128(2), 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 303 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toString(toNullable(toUInt128(57)), time), time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toString(toNullable(toUInt128(57)), time), time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toString(toNullable(toUInt128(57)), time), time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a55cf 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 304 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 7 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', toUInt128(2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 7) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', toUInt128(2), 2), toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 305 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log PREWHERE toLowCardinality(toUInt256(3)) WHERE current_database = currentDatabase() GROUP BY toNullable(2), POW(3, toLowCardinality(toNullable(toUInt256(2)))), toUInt128(2) ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', toUInt128(2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log PREWHERE toLowCardinality(toUInt256(3)) WHERE current_database = currentDatabase() GROUP BY toNullable(2), POW(3, toLowCardinality(toNullable(toUInt256(2)))), toUInt128(2) ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), toFixedString('ok', toUInt128(2), 2), toString(time))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log PREWHERE toLowCardinality(toUInt256(3)) WHERE current_database = currentDatabase() GROUP BY toNullable(2), POW(3, toLowCardinality(toNullable(toUInt256(2)))), toUInt128(2) ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 306 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toLowCardinality(toNullable(0))), toFixedString('ok', toUInt128(2), 2), toString(time)) Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT -2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', toUInt128(2), materialize(2)), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT -2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', toUInt128(2), materialize(2)), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 308 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57)), time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', toUInt128(2), 2), toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57)), time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', toUInt128(2), 2), toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual FixedString(57): In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57)), time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', toUInt128(2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf Fuzzing step 309 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, 2))) = toLowCardinality(toLowCardinality(power(toNullable(3), 2), toNullable(0))), toFixedString('ok', toUInt128(2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, 2))) = toLowCardinality(toLowCardinality(power(toNullable(3), 2), toNullable(0))), toFixedString('ok', toUInt128(2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toLowCardinality(toLowCardinality(power(toNullable(3), 2), toNullable(0))), toFixedString('ok', toUInt128(2), 2), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 310 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE equals(POWER(POW(toNullable(materialize(3)), materialize(2)), 2), current_database, currentDatabase()) ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', toUInt128(2), 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE equals(POWER(POW(toNullable(materialize(3)), materialize(2)), 2), current_database, currentDatabase()) ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', toUInt128(2), 2), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE equals(POWER(POW(toNullable(materialize(3)), materialize(2)), 2), current_database, currentDatabase()) ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 311 out of 1000 WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(3)), toUInt128(3), toUInt256(materialize(toNullable(3))) ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT toUInt256(63), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', 2, 2), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(3)), toUInt128(3), toUInt256(materialize(toNullable(3))) ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT toUInt256(63), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), toFixedString('ok', 2, 2), toString(time))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toNullable(toUInt256(3)), toUInt128(3), toUInt256(materialize(toNullable(3))) ORDER BY toLowCardinality(0) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 312 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, POWER(2, 3), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY toLowCardinality(0) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(0)), toFixedString('ok', toUInt128(toLowCardinality(2)), 2), toString(time)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 313 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2147483647) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 315 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 318 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 319 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) PREWHERE toNullable(toUInt128(0)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) PREWHERE toNullable(toUInt128(0))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 321 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 322 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 323 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 324 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(POWER(POW(3, 2), 2, materialize(3)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(POWER(POW(3, 2), 2, materialize(3)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(POWER(POW(3, 2), 2, materialize(3)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 325 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 326 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 327 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(2, current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(2, current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(2, current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 329 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database, pow(3, toNullable(2)), currentDatabase()) GROUP BY materialize(toUInt256(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toNullable(toUInt128(2)), toString(time)) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database, pow(3, toNullable(2)), currentDatabase()) GROUP BY materialize(toUInt256(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toNullable(toUInt128(2)), toString(time)) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database, pow(3, toNullable(2)), currentDatabase()) GROUP BY materialize(toUInt256(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toNullable(toUInt128(2)), toString(time)) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 330 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT '104857.5' ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT '104857.5') AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual '104857.5'. In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT '104857.5') AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x0000000007b6672c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f3938 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 331 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 332 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 333 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 336 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 338 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, materialize(toLowCardinality(3)), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, materialize(toLowCardinality(3)), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize(toLowCardinality(3)), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 340 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 2147483646 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 2147483646) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 341 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 343 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 344 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(materialize(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(materialize(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 348 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(materialize(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 349 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(2))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 351 out of 1000 EXPLAIN AST graph = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN AST graph = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 352 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 353 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 354 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY toNullable('ok') ASC, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), 1)), toDateTime(tupleElement(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, materialize('ok'), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), time, 2))) = 0, 'ok', toString(toNullable(63), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY toNullable('ok') ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), 1)), toDateTime(tupleElement(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, materialize('ok'), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), time, 2))) = 0, 'ok', toString(toNullable(63), time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY toNullable('ok') ASC, event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toString(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), 1)), toDateTime(tupleElement(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), time, 2))) = 0, 'ok', toString(toNullable(63), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 357 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT -2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT -2147483647) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 359 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483648 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483648) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 361 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(toUInt256(2))) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(toUInt256(2))) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Illegal type (Nullable(UInt256)) of 1 argument of function and. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000076459cc 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000082ca0d1 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:3058: DB::ActionsDAG::buildFilterActionsDAG(std::vector> const&, std::unordered_map, std::equal_to, std::allocator>> const&, bool) @ 0x0000000017459652 12. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1657: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000001a991851 13. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000001aa6b363 14. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:0: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001aa6b0b1 15. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001aa4d792 16. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001a96a4fa 17. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001a968ff0 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000017e07609 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000017e072b0 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:537: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174efd9b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 362 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toLowCardinality(toNullable(toUInt256(2))), time)) Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)), time)) Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(2)), time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 365 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)), time)) Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)))) Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)))) Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2)))), 'ok', toString(toNullable(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2)))), 'ok', toString(toNullable(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 369 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(materialize(3), 'second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize(3), 'second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2))))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: UInt8: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize(3), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt256(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 370 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)))) Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(materialize(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), time.1), toDateTime(tupleElement(time, 2))), toLowCardinality(toUInt256(toUInt128(3))), 0), 'ok', toString(toNullable(toUInt256(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(materialize(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), time.1), toDateTime(tupleElement(time, 2))), toLowCardinality(toUInt256(toUInt128(3))), 0), 'ok', toString(toNullable(toUInt256(2))))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime64(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(materialize(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), time.1), toDateTime(time.2)), toLowCardinality(toUInt256(toUInt128(3))), 0), 'ok', toString(toNullable(toUInt256(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 372 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2)))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 374 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase(pow(toNullable(3), toNullable(toNullable(2)))) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase(pow(toNullable(3), toNullable(toNullable(2)))) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase(pow(toNullable(3), toNullable(toNullable(2)))) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 375 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time), 2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time), 2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time), 2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 26. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 377 out of 1000 WITH ( SELECT event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Error on processing query 'WITH (SELECT event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2)))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 378 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -2147483647) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2)))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 379 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 382 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2)) Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2)) Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY -2147483648, toFixedString(toNullable(toFixedString('ok', 2)), 2), materialize(toUInt256(57)) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY -2147483648, toFixedString(toNullable(toFixedString('ok', 2)), 2), materialize(toUInt256(57)) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2))': Received from localhost:9000. DB::Exception: Negative positional argument number -2147483648 is out of bounds. Expected in range [-2, -1]. In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY -2147483648, toFixedString(toNullable(toFixedString('ok', 2)), 2), materialize(toUInt256(57)) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, long&, unsigned long&&, String&&) @ 0x000000001751fe4c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f317a 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 385 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 386 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(POWER(2, 3), time), 0), 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(POWER(2, 3), time), 0), 'ok', toString(2))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toString(POWER(2, 3), time), 0), 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a534c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 388 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), materialize(56))) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), materialize(56))) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), materialize(56))) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e423cb0 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 18. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 Fuzzing step 389 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -9223372036854775808 ) AS time SELECT if(equals(0), 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -9223372036854775808) AS time SELECT if(equals(0), 'ok', toString(2))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -9223372036854775808) AS time SELECT if(equals(0), 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 390 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), time.1), toDateTime(time.2)) = 0, 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 391 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Got boring AST Fuzzing step 392 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if('ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if('ok', toString(2))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if('ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 393 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -9223372036854775808 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT -9223372036854775808) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 394 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 395 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 65535 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 65535) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 396 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toLowCardinality(toUInt256(toUInt128(3)))) WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(toLowCardinality(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toLowCardinality(toUInt256(toUInt128(3)))) WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(toLowCardinality(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE materialize(toLowCardinality(toUInt256(toUInt128(3)))) WHERE equals(current_database) ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 397 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)), current_database, currentDatabase()) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, materialize('ok'), toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)), current_database, currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, materialize('ok'), toString(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)), current_database, currentDatabase()) ORDER BY event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 26. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 398 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Got boring AST Fuzzing step 399 out of 1000 WITH ( SELECT event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 400 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(0), 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(2))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 401 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)), materialize(toNullable(toLowCardinality(3))), 2)) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, materialize('ok'), toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)), materialize(toNullable(toLowCardinality(3))), 2)) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, materialize('ok'), toString(2))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)), materialize(toNullable(toLowCardinality(3))), 2)) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef Fuzzing step 403 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 404 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)) Got boring AST Fuzzing step 405 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), 'ok', toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 2)) Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 0 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), 'ok', toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 0) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), 'ok', toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 2))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 407 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(pow(toLowCardinality(3), 2), equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), power(materialize(materialize(3)), 2), toUInt128(0)), 'ok', toString(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), toUInt256(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(pow(toLowCardinality(3), 2), equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), power(materialize(materialize(3)), 2), toUInt128(0)), 'ok', toString(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), toUInt256(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(pow(toLowCardinality(3), 2), equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), power(materialize(materialize(3)), 2), toUInt128(0)), 'ok', toString(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), toUInt256(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 408 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(if(dateDiff('second', toDateTime(tupleElement(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 2)) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 409 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 410 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 411 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(power(3, toNullable(2))) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(power(3, toNullable(2))) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(power(3, toNullable(2))) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 412 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(materialize(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(materialize(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Argument at index 0 for function dateDiff must be constant. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x0000000007b6b086 4. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008714a94 5. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 6. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 7. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 8. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 10. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 11. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 12. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 13. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e12af7 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 413 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2147483647) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 415 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY POWER(POW(materialize(3), 2), 2, materialize(materialize(3))) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY POWER(POW(materialize(3), 2), 2, materialize(materialize(3))) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY POWER(POW(materialize(3), 2), 2, materialize(materialize(3))) ASC, event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 15. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 416 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 417 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toNullable(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toNullable(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toNullable(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 418 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 420 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 421 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 423 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY POW(3, 2) ORDER BY event_time ASC NULLS LAST LIMIT -2147483649 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY POW(3, 2) ORDER BY event_time ASC NULLS LAST LIMIT -2147483649) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 424 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 426 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 429 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 430 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 431 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 432 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 438 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 439 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 440 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 441 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 442 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 444 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 447 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 448 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 452 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 454 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 455 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 456 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 457 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 459 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 461 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 462 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 464 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 466 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 467 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 468 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 469 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 470 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 471 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 472 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 475 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 476 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 477 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 478 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 479 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 480 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 482 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 485 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 486 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 488 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 490 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 491 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 494 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 497 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 499 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 500 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 501 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 502 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 503 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(toUInt128(3)) ORDER BY event_time ASC LIMIT 2 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(toUInt128(3)) ORDER BY event_time ASC LIMIT 2) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(toUInt128(3)) ORDER BY event_time ASC LIMIT 2) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 504 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 505 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 506 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 507 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 509 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 511 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(56), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable(56), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: UInt8: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toNullable(56), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 513 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 514 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 515 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 516 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable(toUInt256(3)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable(toUInt256(3))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 518 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(toNullable(2))) Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(power(2)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(0), 'ok', toString(time)) GROUP BY materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(toNullable(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(power(2)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time)) GROUP BY materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(toNullable(2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(power(2)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(time)) GROUP BY materialize('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(time.2), POWER(3, materialize(toNullable(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 520 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), toFixedString('ok', 2), toString(time)) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, toNullable(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), toFixedString('ok', 2), toString(time)) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, toNullable(2))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(0), toFixedString('ok', 2), toString(time)) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(time.2), POWER(3, toNullable(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 521 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY materialize(toFixedString(toLowCardinality(toLowCardinality(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57)), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(toNullable(toUInt256(toNullable(3)), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY materialize(toFixedString(toLowCardinality(toLowCardinality(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57)), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(toNullable(toUInt256(toNullable(3)), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY materialize(toFixedString(toLowCardinality(toLowCardinality(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57)), 'ok', toDateTime(time.2), POWER(3, materialize(toNullable(toUInt256(toNullable(3)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 522 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT NULL ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(toNullable(2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT NULL) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(toNullable(2)))': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual NULL. In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT NULL) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x0000000007b6672c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f3938 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 523 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(2)) Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toString(toUInt128(2), 57, POWER(toNullable(materialize('01473_query_log_table_event_start_time_microseconds_test', 56), 2), 2), time) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 57, 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toString(toUInt128(2), 57, POWER(toNullable(materialize('01473_query_log_table_event_start_time_microseconds_test', 56), 2), 2), time) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 57, 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE toString(toUInt128(2), 57, POWER(toNullable(materialize('01473_query_log_table_event_start_time_microseconds_test', 56), 2), 2), time) GROUP BY '01473_metric_log_table_event_start_time_microseconds_test', 57, 'ok', toDateTime(time.2), POWER(3, materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 525 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, 2)), POWER(3, materialize(2)) Got boring AST Fuzzing step 526 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database) GROUP BY toDateTime(tupleElement(time, 2)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toUInt128(2)))) = 0, 'ok', toString(time)) WHERE pow(3, materialize(2)) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, POWER(POW(3, 2), 2), 2)), POWER(3, materialize(2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database) GROUP BY toDateTime(tupleElement(time, 2)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toUInt128(2)))) = 0, 'ok', toString(time)) WHERE pow(3, materialize(2)) GROUP BY toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toDateTime(tupleElement(time, POWER(POW(3, 2), 2), 2)), POWER(3, materialize(2))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database) GROUP BY toDateTime(time.2) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 527 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 WITH ( SELECT event_time_microseconds, 63, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toFixedString('ok', 2), toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, 63, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toFixedString('ok', 2), toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, 63, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toFixedString('ok', 2), toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 529 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 531 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 532 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 533 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(currentDatabase()) ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(currentDatabase()) ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(currentDatabase()) ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 534 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY materialize(57) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', POW(3, 2), 57), 57)), (materialize(toNullable('ok'))), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY materialize(57) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', POW(3, 2), 57), 57)), (materialize(toNullable('ok'))), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY materialize(57) ASC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', POW(3, 2), 57), 57)), (materialize(toNullable('ok'))), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 535 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(POW(3, toLowCardinality(2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(POW(3, toLowCardinality(2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(POW(3, toLowCardinality(2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 536 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Got boring AST Fuzzing step 537 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Got boring AST Fuzzing step 538 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time)) GROUP BY GROUPING SETS ( (toFixedString(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time)) GROUP BY GROUPING SETS ((toFixedString(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toString(time)) GROUP BY GROUPING SETS ((toFixedString(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 540 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS FIRST, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(2))), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 541 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 2147483648 ) AS time SELECT if(pow(3, toNullable(toUInt256(2))), dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 2147483648) AS time SELECT if(pow(3, toNullable(toUInt256(2))), dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 2147483648) AS time SELECT if(pow(3, toNullable(toUInt256(2))), dateDiff('second', toDateTime(tupleElement(time, toUInt256(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(time.2)), (POWER(3, 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 542 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(power(toNullable(3), toNullable(2)), tupleElement(time, 2))), (POWER(3, materialize(materialize(toNullable(2)))))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(power(toNullable(3), toNullable(2)), tupleElement(time, 2))), (POWER(3, materialize(materialize(toNullable(2))))))': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 1]. In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(power(toNullable(3), toNullable(2)), time.2)), (POWER(3, materialize(materialize(toNullable(2)))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 543 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Got boring AST Fuzzing step 544 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Got boring AST Fuzzing step 545 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 2)))) WITH CUBE Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 2)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 546 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Got boring AST Fuzzing step 548 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Got boring AST Fuzzing step 549 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 550 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57)), ('ok'), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 551 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, toNullable(toUInt128(2))))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, toNullable(toUInt128(2))))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) ASC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, toNullable(toUInt128(2))))), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 552 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time))), (POWER(3, materialize(2)))) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time))), (POWER(3, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 553 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), (toNullable('ok')), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), (toNullable('ok')), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 1]. In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), (toNullable('ok')), (toDateTime(time.2)), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4084: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 554 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0 WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0 WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0 WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC, event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 21. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 555 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY POWER(POW(toNullable(3), 2), 2) ASC, materialize(57) DESC, event_time ASC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', POW(3, materialize(toNullable(2))), toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, -9223372036854775808, 2))), (POWER(3, materialize(2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY POWER(POW(toNullable(3), 2), 2) ASC, materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', POW(3, materialize(toNullable(2))), toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, -9223372036854775808, 2))), (POWER(3, materialize(2))))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY POWER(POW(toNullable(3), 2), 2) ASC, materialize(57) DESC, event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', POW(3, materialize(toNullable(2))), toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY GROUPING SETS ((toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57)), ('ok'), (toDateTime(tupleElement(time, -9223372036854775808, 2))), (POWER(3, materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 556 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY materialize(57) DESC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY GROUPING SETS ( (toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(57)), 57)), ('ok'), (toDateTime(tupleElement(time, 2))), (POWER(3, materialize(2)))) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 557 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 559 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(materialize(tupleElement(time, toLowCardinality(toFixedString(toFixedString('ok', 2), 2), toLowCardinality(1))), toUInt128(6)), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(materialize(tupleElement(time, toLowCardinality(toFixedString(toFixedString('ok', 2), 2), toLowCardinality(1))), toUInt128(6)), time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(materialize(tupleElement(time, toLowCardinality(toFixedString(toFixedString('ok', 2), 2), toLowCardinality(1))), toUInt128(6)), time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 560 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 561 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, power(toNullable(3), toLowCardinality(2)), 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, power(toNullable(3), toLowCardinality(2)), 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, power(toNullable(3), toLowCardinality(2)), 2))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 562 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 563 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY pow(toNullable(3), toNullable(2)), toString(2) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY pow(toNullable(3), toNullable(2)), toString(2) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY pow(toNullable(3), toNullable(2)), toString(2) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 565 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT -2147483647) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 566 out of 1000 EXPLAIN PIPELINE header = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE header = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 567 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 568 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 569 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 571 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) GROUP BY dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 572 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 573 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 576 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database, toString(power(POWER(POW(toFixedString(3, '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toNullable(toNullable(toUInt128(3), 57)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database, toString(power(POWER(POW(toFixedString(3, '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toNullable(toNullable(toUInt128(3), 57)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(current_database, toString(power(POWER(POW(toFixedString(3, '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toNullable(toNullable(toUInt128(3), 57)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 577 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toDateTime(tupleElement(2)), 6 Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toDateTime(tupleElement(2)), 6': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 1]. In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) GROUP BY toDateTime(tupleElement(2)), 6. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 578 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 EXPLAIN PIPELINE compact = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE compact = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 580 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals('01473_trace_log_table_event_start_time_microseconds_test', dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals('01473_trace_log_table_event_start_time_microseconds_test', dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals('01473_trace_log_table_event_start_time_microseconds_test', dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 581 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 583 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(2)). In query WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 584 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 585 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 586 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() GROUP BY POWER(3, materialize(2)) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if('ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() GROUP BY POWER(3, materialize(2)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if('ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() GROUP BY POWER(3, materialize(2)) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 588 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), toDateTime(tupleElement(time, materialize(toUInt256(1)))), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 589 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 590 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE dateDiff(toNullable('second'), toDateTime(tupleElement(time, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 1)), toDateTime(tupleElement(time, materialize(toNullable(2))))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE dateDiff(toNullable('second'), toDateTime(tupleElement(time, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 1)), toDateTime(tupleElement(time, materialize(toNullable(2)))))': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE dateDiff(toNullable('second'), toDateTime(tupleElement(time, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 1)), toDateTime(tupleElement(time, materialize(toNullable(2))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 591 out of 1000 WITH ( SELECT event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable(56) Error on processing query 'WITH (SELECT event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable(56)': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toNullable(56). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 592 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 593 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT -1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT -1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 594 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POWER(POW(3, 2), materialize(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POWER(POW(3, 2), materialize(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 3, should be 1: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, 2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 595 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT tupleElement(time, toLowCardinality(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT tupleElement(time, toLowCardinality(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT tupleElement(time, toLowCardinality(toNullable(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 596 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database, event_time_microseconds, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toUInt256(2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database, event_time_microseconds, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE 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 event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database, event_time_microseconds, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 598 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 599 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 600 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 601 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT pow(toLowCardinality(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT pow(toLowCardinality(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT pow(toLowCardinality(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 603 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok') Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok')': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 606 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 65536 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 65536) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 608 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 614 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 615 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 617 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 618 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 619 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 620 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 621 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 623 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Got boring AST Fuzzing step 625 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2147483649 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT -2147483649) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 626 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE equals(POW(materialize(3), 2), current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE equals(POW(materialize(3), 2), current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE equals(POW(materialize(3), 2), current_database, currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 627 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok') Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok')': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 2, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok'). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 630 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 632 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY POW(toUInt128(3), 2) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY POW(toUInt128(3), 2) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY POW(toUInt128(3), 2) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 633 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 635 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: While processing if(dateDiff('second', toDateTime((__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time).1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 19. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 20. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 22. ./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&) @ 0x000000001773fb78 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 24. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 27. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 29. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d Fuzzing step 636 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase(POW(3, toNullable(2))) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(power(toLowCardinality(3), 3, 2), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase(POW(3, toNullable(2))) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(power(toLowCardinality(3), 3, 2), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase(POW(3, toNullable(2))) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(power(toLowCardinality(3), 3, 2), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 637 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: While processing if(dateDiff('second', toDateTime((__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time).1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 19. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 20. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 22. ./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&) @ 0x000000001773fb78 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 24. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 27. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 29. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d Fuzzing step 641 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 642 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: While processing if(dateDiff('second', toDateTime((__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time).1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 19. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 20. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 22. ./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&) @ 0x000000001773fb78 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 24. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 27. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 29. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d Fuzzing step 643 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 644 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: While processing if(dateDiff('second', toDateTime((__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time).1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 19. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 20. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 22. ./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&) @ 0x000000001773fb78 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 24. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 27. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 29. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d Fuzzing step 645 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: While processing if(dateDiff('second', toDateTime((__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time).1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(pow(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 18. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 19. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 20. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 22. ./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&) @ 0x000000001773fb78 23. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 24. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 27. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 28. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 29. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d Fuzzing step 646 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY ev. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 647 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 648 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 649 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 WITH ( SELECT POWER(POW(materialize(3), 2), 2, materialize(3)), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE equals(current_database) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toLowCardinality(toNullable(0)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT POWER(POW(materialize(3), 2), 2, materialize(3)), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE equals(current_database) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toLowCardinality(toNullable(0)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT POWER(POW(materialize(3), 2), 2, materialize(3)), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE equals(current_database) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 16. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 651 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY ev. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 652 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(materialize(toUInt256(toUInt128(toLowCardinality(toUInt256(3))))), time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(materialize(toUInt256(toUInt128(toLowCardinality(toUInt256(3))))), time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(materialize(toUInt256(toUInt128(toLowCardinality(toUInt256(3))))), time.2)) = 0, 'ok', toString(POW(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 653 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) WHERE 1048576 Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 654 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE equals(current_database, POWER(3, 2), currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 255 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE equals(current_database, POWER(3, 2), currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 255) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE equals(current_database, POWER(3, 2), currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 255) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 656 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 658 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(0), 'ok', toString(POW(toLowCardinality(toNullable(2)), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(POW(toLowCardinality(toNullable(2)), 2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(0), 'ok', toString(POW(toLowCardinality(toNullable(2)), 2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 659 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POWER(toUInt256(2), 3, 2), if(equals(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 0), 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POWER(toUInt256(2), 3, 2), if(equals(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 0), 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POWER(toUInt256(2), 3, 2), if(equals(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 0), 'ok', toString(POW(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 660 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(equals(dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)), 'second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(equals(dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)), 'second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), if(equals(dateDiff(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), 'second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(POW(2), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 661 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), POWER(POW(3, 2), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), POWER(POW(3, 2), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 663 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 664 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database, toLowCardinality(3), currentDatabase()) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database, toLowCardinality(3), currentDatabase()) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE equals(current_database, toLowCardinality(3), currentDatabase()) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 665 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)) Got boring AST Fuzzing step 666 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 668 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)) Got boring AST Fuzzing step 671 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Got boring AST Fuzzing step 673 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Got boring AST Fuzzing step 675 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Got boring AST Fuzzing step 676 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Got boring AST Fuzzing step 679 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Got boring AST Fuzzing step 680 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 682 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)) Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)) GROUP BY if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(2)), time)), power(materialize(materialize(3)), 2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)) GROUP BY if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(2)), time)), power(materialize(materialize(3)), 2)': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(2)) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)) GROUP BY if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(2)), time)), power(materialize(materialize(3)), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 684 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0) ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0) ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 23. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 685 out of 1000 WITH ( SELECT event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toLowCardinality(toNullable(0))), 'ok', toString(POW(toLowCardinality(POW(3, 2), 2)), time)) Error on processing query 'WITH (SELECT event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toLowCardinality(toNullable(0))), 'ok', toString(POW(toLowCardinality(POW(3, 2), 2)), time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toLowCardinality(toNullable(0))), 'ok', toString(POW(toLowCardinality(POW(3, 2), 2)), time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 686 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) ORDER BY event_time ASC LIMIT -2147483647 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), toNullable(2)), 2), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) ORDER BY event_time ASC LIMIT -2147483647) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), toNullable(2)), 2), time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 687 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)))) Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toUInt128(1)))), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toNullable(toLowCardinality(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize('ok'), toString(time)), '01473_trace_log_table_event_start_time_microseconds_test')), time, 2))) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toUInt128(1)))), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toNullable(toLowCardinality(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize('ok'), toString(time)), '01473_trace_log_table_event_start_time_microseconds_test')), time, 2))) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2))))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toUInt128(1)))), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 26. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 689 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)))) Query succeeded, using this AST as a start Fuzzing step 690 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(toUInt128(2))) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toLowCardinality(toUInt128(2))) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2))))': Received from localhost:9000. DB::Exception: Illegal type (UInt128) of 1 argument of function and. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&&, String&&) @ 0x00000000076459cc 4. DB::FunctionsLogicalDetail::FunctionAnyArityLogical::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x00000000082ca0d1 5. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:3058: DB::ActionsDAG::buildFilterActionsDAG(std::vector> const&, std::unordered_map, std::equal_to, std::allocator>> const&, bool) @ 0x0000000017459652 12. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1657: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000001a991851 13. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000001aa6b363 14. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:0: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001aa6b0b1 15. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001aa4d792 16. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001a96a4fa 17. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001a968ff0 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000017e07609 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000017e072b0 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:537: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174efd9b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 691 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 EXPLAIN PIPELINE compact = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'EXPLAIN PIPELINE compact = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 694 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Got boring AST Fuzzing step 695 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(dateDiff('second', toDateTime(tupleElement(tupleElement(time, toLowCardinality(2)), time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(dateDiff('second', toDateTime(tupleElement(tupleElement(time, toLowCardinality(2)), time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2)))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual DateTime: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(dateDiff('second', toDateTime(tupleElement(tupleElement(time, toLowCardinality(2)), time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 696 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(POWER(toNullable(2), 3, 2), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(POWER(toNullable(2), 3, 2), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(POWER(toNullable(2), 3, 2), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 697 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)), toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)), toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)), toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 698 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, POW(toLowCardinality(3), 2), 2))) = 0, 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, POW(toLowCardinality(3), 2), 2))) = 0, 'ok', toString(POW(POW(toLowCardinality(3), 2), 2)))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, POW(toLowCardinality(3), 2), 2))) = 0, 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 699 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)), 'second'), toDateTime(time.1), toDateTime(tupleElement(toUInt128(3), time, 2))) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)), 'second'), toDateTime(time.1), toDateTime(tupleElement(toUInt128(3), time, 2))) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)), 'second'), toDateTime(time.1), toDateTime(tupleElement(toUInt128(3), time, 2))) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 700 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 701 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 702 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(toLowCardinality(3)), 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(toLowCardinality(3)), 2), 2)))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(toLowCardinality(3)), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 703 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(equals(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))) Error on processing query 'EXPLAIN SYNTAX WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) ORDER BY event_time ASC LIMIT 1) AS time SELECT if(equals(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), toNullable(0)), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: While processing if(equals(if(dateDiff('second', toDateTime((__scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time).1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), toNullable(0)), 'ok', toString(pow(pow(toLowCardinality(3), 2), 2))): While processing WITH __scalarSubqueryResult(_CAST(('0', 0), 'Tuple(DateTime64(6), DateTime)')) AS time SELECT if(equals(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), toNullable(0)), 'ok', toString(pow(pow(toLowCardinality(3), 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 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&) @ 0x000000001773fb78 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 25. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf Fuzzing step 704 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 706 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff(if(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(if(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff(if(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 708 out of 1000 EXPLAIN QUERY TREE passes = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY toLowCardinality(POW(3, 2), 2), toUInt256(56) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'EXPLAIN QUERY TREE passes = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() GROUP BY toLowCardinality(POW(3, 2), 2), toUInt256(56) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 709 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1024 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1024) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 710 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, toLowCardinality(toUInt256(toNullable(2))), 2))) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, toLowCardinality(toUInt256(toNullable(2))), 2))) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(2) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(time, toLowCardinality(toUInt256(toNullable(2))), 2))) = 0, 'ok', toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 711 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(materialize(toLowCardinality(toNullable(2)))) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 WITH ( SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(materialize(toLowCardinality(toNullable(2)))) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(materialize(toLowCardinality(toNullable(2)))) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Cannot parse datetime: Cannot parse DateTime from String: In scope WITH (SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(materialize(toLowCardinality(toNullable(2)))) WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, char const*, char const*) @ 0x0000000007b66689 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&&) @ 0x0000000007958525 6. DB::(anonymous namespace)::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007944c16 7. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007615264 8. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 10. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087150be 11. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 12. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 13. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506e7f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 713 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(materialize(toNullable(2))) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(materialize(toNullable(2))) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(POW(POW(3, 2), 2))) Got boring AST Fuzzing step 715 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(materialize(toNullable(2))) WHERE current_database = currentDatabase() ORDER BY materialize(materialize(toNullable(0))) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Argument at index 0 for function dateDiff must be constant. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, unsigned long&, String&&) @ 0x0000000007b6b086 4. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008714a94 5. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 6. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 7. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 8. ./contrib/boost/boost/smart_ptr/intrusive_ptr.hpp:117: DB::ActionsDAG::evaluatePartialResult(std::unordered_map, std::equal_to, std::allocator>>&, std::vector> const&, unsigned long, bool) @ 0x0000000017440ba6 9. ./build_docker/./src/Interpreters/ActionsDAG.cpp:0: DB::ActionsDAG::updateHeader(DB::Block const&) const @ 0x000000001743efbf 10. ./build_docker/./src/Processors/Transforms/ExpressionTransform.cpp:10: DB::ExpressionTransform::transformHeader(DB::Block const&, DB::ActionsDAG const&) @ 0x000000001a6ef0aa 11. ./build_docker/./src/Processors/QueryPlan/ExpressionStep.cpp:32: DB::ExpressionStep::ExpressionStep(DB::DataStream const&, DB::ActionsDAG) @ 0x000000001a9200a7 12. ./contrib/llvm-project/libcxx/include/vector:438: std::__unique_if::__unique_single std::make_unique[abi:v15007](DB::DataStream const&, DB::ActionsDAG&&) @ 0x000000001627f862 13. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addExpressionStep(DB::QueryPlan&, std::shared_ptr&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19905 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e12af7 15. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 16. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 719 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Got boring AST Fuzzing step 720 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) DESC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) WHERE POW(3, 2) Error on processing query 'WITH (SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) DESC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) WHERE POW(3, 2)': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 721 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Got boring AST Fuzzing step 722 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(2), 2))) Error on processing query 'WITH (SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 723 out of 1000 WITH ( SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Cannot parse datetime: Cannot parse DateTime from String: In scope WITH (SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, char const*, char const*) @ 0x0000000007b66689 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&&) @ 0x0000000007958525 6. DB::(anonymous namespace)::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007944c16 7. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007615264 8. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 10. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087150be 11. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 12. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 13. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506e7f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 724 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Got boring AST Fuzzing step 725 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT -2 ) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT -2) AS time SELECT if(dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 726 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3, toNullable(toUInt128(2))), time)), toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3, toNullable(toUInt128(2))), time)), toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toLowCardinality(toNullable(2)) WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(toNullable(2), 3, toNullable(toUInt128(2))), time)), toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 728 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) DESC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) DESC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 WITH ( SELECT toNullable('second'), event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 WITH ( SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))) Error on processing query 'WITH (SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2)))': Received from localhost:9000. DB::Exception: Cannot parse datetime: Cannot parse DateTime from String: In scope WITH (SELECT 'second', event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(toLowCardinality(3), toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. void DB::readDateTimeTextImpl(long&, DB::ReadBuffer&, DateLUTImpl const&, char const*, char const*) @ 0x0000000007b66689 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&&) @ 0x0000000007958525 6. DB::(anonymous namespace)::FunctionConvert::executeImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007944c16 7. DB::IFunction::executeImplDryRun(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007615264 8. DB::FunctionToExecutableFunctionAdaptor::executeDryRunImpl(std::vector> const&, std::shared_ptr const&, unsigned long) const @ 0x0000000007637a5c 9. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087155e7 10. DB::IExecutableFunction::defaultImplementationForConstantArguments(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087150be 11. DB::IExecutableFunction::executeWithoutLowCardinalityColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008715574 12. DB::IExecutableFunction::executeWithoutSparseColumns(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x00000000087161d5 13. DB::IExecutableFunction::execute(std::vector> const&, std::shared_ptr const&, unsigned long, bool) const @ 0x0000000008717eef 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506e7f 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 732 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', POW(toLowCardinality(toLowCardinality(3)), 2), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)), time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', POW(toLowCardinality(toLowCardinality(3)), 2), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)), time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'timezone' to function 'toDateTime'. Expected: String, got: DateTime64(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', POW(toLowCardinality(toLowCardinality(3)), 2), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(time)), time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x000000000796a968 7. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007945bcc 8. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 9. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 10. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 11. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 734 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(POW(POW(3, 2), 2))) Got boring AST Fuzzing step 735 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POWER(POW(3, toNullable(toUInt256(2)))), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(POW(POW(3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POWER(POW(3, toNullable(toUInt256(2)))), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(POW(POW(3, 2), 2)))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POWER(POW(3, toNullable(toUInt256(2)))), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(POW(POW(3, 2), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 737 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))) Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, toUInt128(2)), 2))) Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, toUInt128(2)), 2))) Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(POW(POW(3, materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)), toUInt128(2)), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(POW(POW(3, materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)), toUInt128(2)), 2)))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS LAST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, 'ok', toString(POW(POW(3, materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)), toUInt128(2)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 742 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 65535 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, toUInt128(2)), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 65535) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, toUInt128(2)), 2)))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 743 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toDateTime(tupleElement(time, toUInt128(1))), time, 2))) = 0, materialize('ok'), toString(POW(POW(3, toUInt128(2)), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toDateTime(tupleElement(time, toUInt128(1))), time, 2))) = 0, materialize('ok'), toString(POW(POW(3, toUInt128(2)), 2)))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(toDateTime(tupleElement(time, toUInt128(1))), time, 2))) = 0, materialize('ok'), toString(POW(POW(3, toUInt128(2)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 744 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = materialize(0), 'ok', toString(POW(POW(3, toUInt128(2)), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = materialize(0), 'ok', toString(POW(POW(3, toUInt128(2)), 2)))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC NULLS FIRST, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = materialize(0), 'ok', toString(POW(POW(3, toUInt128(2)), 2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 745 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, toUInt128(2)), 2))) Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE time.2 WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC, materialize(materialize(toNullable(0))) ASC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 2))) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE time.2 WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC, materialize(materialize(toNullable(0))) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 2)))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE time.2 WHERE current_database = currentDatabase() ORDER BY currentDatabase() DESC, materialize(materialize(toNullable(0))) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 747 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC, materialize(materialize(toNullable(0))) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, toUInt128(2)), 2))) Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY currentDatabase() ASC NULLS FIRST, toUInt256(toNullable(2)) ASC, materialize(materialize(toNullable(0))) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, toUInt128(2)), 2))) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 749 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 750 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT -2147483649 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), POWER(toLowCardinality(toNullable(3))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT -2147483649) AS time SELECT if(dateDiff('second', toDateTime(time.1), POWER(toLowCardinality(toNullable(3))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 751 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2)))) ORDER BY event_time DESC NULLS LAST LIMIT 255 ) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2)))) ORDER BY event_time DESC NULLS LAST LIMIT 255) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2)))) ORDER BY event_time DESC NULLS LAST LIMIT 255) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 29. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 752 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 753 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 9223372036854775807 ) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 9223372036854775807) AS time SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 754 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57)) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57)) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff(materialize('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57)) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 757 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', time, toDateTime(time.1), toDateTime(tupleElement(toLowCardinality(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', time, toDateTime(time.1), toDateTime(tupleElement(toLowCardinality(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', time, toDateTime(time.1), toDateTime(tupleElement(toLowCardinality(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 758 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 761 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 762 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POW(toNullable(materialize(3)), materialize(2))) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POW(toNullable(materialize(3)), materialize(2))) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase(POW(toNullable(materialize(3)), materialize(2))) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 763 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 255 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 255) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 764 out of 1000 EXPLAIN PIPELINE `graph=1` = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE `graph=1` = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 765 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(POW(3, 2), 2), time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(POW(3, 2), 2), time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(POW(3, 2), 2), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 766 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, POW(3, materialize(toLowCardinality(2))), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, POW(3, materialize(toLowCardinality(2))), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function if doesn't match: passed 4, should be 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, POW(3, materialize(toLowCardinality(2))), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 768 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 770 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 773 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 774 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 775 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 776 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 777 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 778 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 780 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 781 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 782 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 786 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 787 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 788 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 789 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 791 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 793 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 794 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 795 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 797 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 799 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 800 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 801 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 802 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 803 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 805 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 807 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 810 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 811 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT -0. ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT -0.) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned empty result of type Tuple(DateTime64(6), DateTime) which cannot be Nullable. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f1b37 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 812 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 813 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 814 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 815 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 818 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 820 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 822 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 823 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(toString(2, 57, POWER(POW(3, 2)), time), time.1), toDateTime(tupleElement(time, 2))) = 0, materialize(toLowCardinality('ok')), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toString(2, 57, POWER(POW(3, 2)), time), time.1), toDateTime(tupleElement(time, 2))) = 0, materialize(toLowCardinality('ok')), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(toString(2, 57, POWER(POW(3, 2)), time), time.1), toDateTime(time.2)) = 0, materialize(toLowCardinality('ok')), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 824 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 826 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 827 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 828 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 10 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok') Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 10) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok')': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 829 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 831 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality(toUInt128(power(toLowCardinality(3), toNullable(3), 2), 3), 'second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toUInt128(power(toLowCardinality(3), toNullable(3), 2), 3), 'second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toUInt128(power(toLowCardinality(3), toNullable(3), 2), 3), 'second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 832 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 833 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(current_database, toDateTime(tupleElement(time, toLowCardinality(1))), currentDatabase()) ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(current_database, toDateTime(tupleElement(time, toLowCardinality(1))), currentDatabase()) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(current_database, toDateTime(tupleElement(time, toLowCardinality(1))), currentDatabase()) ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 18. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 Fuzzing step 834 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 65537 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 65537) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 835 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 836 out of 1000 WITH ( SELECT event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(DateTime): In scope WITH (SELECT event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 837 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 840 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toDateTime(time.2), 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, toDateTime(time.2), 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(currentDatabase()) ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 841 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality(toLowCardinality('second')), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = 0, toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toLowCardinality('second')), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = 0, toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 842 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(toLowCardinality(toFixedString(2)), 'second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(0), 'ok', toString(time)) Error on processing query 'EXPLAIN PIPELINE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toFixedString(2)), 'second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(toLowCardinality(toFixedString(2)), 'second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 844 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff(POWER(3, materialize(2)), 'second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt128(57)), time), toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(POWER(3, materialize(2)), 'second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt128(57)), time), toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff(POWER(3, materialize(2)), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time), toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 845 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 847 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 848 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 849 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(toNullable(0)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 850 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 851 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 852 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 854 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE equals(currentDatabase()) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS FIRST LIMIT 1048577 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE equals(currentDatabase()) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS FIRST LIMIT 1048577) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(current_database) WHERE equals(currentDatabase()) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS FIRST LIMIT 1048577) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 856 out of 1000 WITH ( SELECT POWER(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time)) Error on processing query 'WITH (SELECT POWER(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toLowCardinality(toFixedString('ok', 2)), toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope (SELECT POWER(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 22. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 857 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 858 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 859 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) PREWHERE power(materialize(3), 2) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) PREWHERE power(materialize(3), 2)': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 860 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) WHERE toUInt256(57) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) WHERE toUInt256(57)': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 861 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 862 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 WITH ( SELECT toNullable(toNullable(0)), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC LIMIT -1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(power(3, 2), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT toNullable(toNullable(0)), event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC LIMIT -1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(power(3, 2), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 864 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC LIMIT -2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toUInt256(2))))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC LIMIT -2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toUInt256(2))))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 865 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 867 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(equals(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(equals(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(equals(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 869 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 870 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 872 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(POWER(POW(2)), time))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(POWER(POW(2)), time))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(POWER(POW(2)), time))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 873 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 875 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(2))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 876 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 877 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time DESC LIMIT 65537 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time DESC LIMIT 65537) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 880 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Got boring AST Fuzzing step 881 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, power(materialize(3), 2), 2))) = 0, toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, power(materialize(3), 2), 2))) = 0, toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER . Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(2), time))) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(2), time))) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(2), time))) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 29. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 883 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(POW(POW(toLowCardinality(3), toNullable(2)), 2)) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT NULL ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(POW(POW(toLowCardinality(3), toNullable(2)), 2)) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT NULL) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(POW(POW(toLowCardinality(3), toNullable(2)), 2)) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT NULL) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 884 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1024 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1024) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 885 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) PREWHERE dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0 Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) PREWHERE dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)) PREWHERE dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 886 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(toUInt128(0)), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time DESC NULLS FIRST LIMIT -2147483647 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(toUInt128(0)), 'ok', toString(toUInt128(6), time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC, event_time DESC NULLS FIRST LIMIT -2147483647) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(toUInt128(0)), 'ok', toString(toUInt128(6), time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 889 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT POW(toNullable(3), POW(3), 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(toUInt128(toNullable(0))), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT POW(toNullable(3), POW(3), 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(toUInt128(toNullable(0))), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT POW(toNullable(3), POW(3), 2), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = materialize(toUInt128(toNullable(0))), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 890 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(toUInt128(0)), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Got boring AST Fuzzing step 893 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Got boring AST Fuzzing step 894 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(toUInt128(3), toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(toUInt128(3), toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(toUInt128(3), toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 896 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(currentDatabase()) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(toString(time), time, 1))) = 0, '01473_query_log_table_event_start_time_microseconds_test', 56, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(currentDatabase()) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(toString(time), time, 1))) = 0, '01473_query_log_table_event_start_time_microseconds_test', 56, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE equals(currentDatabase()) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 897 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Got boring AST Fuzzing step 898 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'unit' to function 'dateDiff'. Expected: String, got: FixedString(6): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 901 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, toNullable(3), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, toNullable(3), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, toNullable(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 902 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, 2))) = materialize(0), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(tupleElement(time, 2))) = materialize(0), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = materialize(0), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 904 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(current_database, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)), currentDatabase(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)))) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(toNullable(3), 2), if(dateDiff('second', toDateTime(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(current_database, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)), currentDatabase(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)))) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(toNullable(3), 2), if(dateDiff('second', toDateTime(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(current_database, if(dateDiff(toNullable('second'), toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(time)), currentDatabase(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)))) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time DESC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 26. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 905 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(toLowCardinality(toNullable(0))), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(toNullable(0)), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 909 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Got boring AST Fuzzing step 910 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toNullable('01473_query_log_table_event_start_time_microseconds_test'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) WHERE materialize(power(toLowCardinality(3), 3, 2), 3) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toNullable('01473_query_log_table_event_start_time_microseconds_test'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) WHERE materialize(power(toLowCardinality(3), 3, 2), 3)': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toNullable('01473_query_log_table_event_start_time_microseconds_test'), toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)) WHERE materialize(power(toLowCardinality(3), 3, 2), 3). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 911 out of 1000 EXPLAIN AST optimize = true WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) GROUP BY power(toLowCardinality(3), 2), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0) Error on processing query 'EXPLAIN AST optimize = true WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) DESC NULLS LAST, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) GROUP BY power(toLowCardinality(3), 2), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 912 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, toNullable(1))), toDateTime(time.2)) = materialize(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 914 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)) Got boring AST Fuzzing step 915 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 916 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase(toUInt128(6)) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time DESC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase(toUInt128(6)) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function currentDatabase doesn't match: passed 1, should be 0: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase(toUInt128(6)) WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time DESC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 917 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(equals(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))), pow(3, materialize(2)), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(equals(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))), pow(3, materialize(2)), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), pow(3, materialize(2)), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 918 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) ASC, POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) ASC, POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) ASC, POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS LAST, event_time ASC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 920 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(toLowCardinality(toUInt256(3)))), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC LIMIT 1 ) AS time SELECT POW(3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(toLowCardinality(toUInt256(3)))), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC LIMIT 1) AS time SELECT POW(3), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(toLowCardinality(toUInt256(3)))), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC LIMIT 1) AS time SELECT POW(3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 923 out of 1000 EXPLAIN QUERY TREE dump_ast = true WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE dump_ast = true WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 924 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: FixedString(57). In query WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC NULLS FIRST, event_time ASC LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 925 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE equals(currentDatabase()) WHERE equals(current_database) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE equals(currentDatabase()) WHERE equals(current_database) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE equals(currentDatabase()) WHERE equals(current_database) ORDER BY POWER(toLowCardinality(materialize(3)), toLowCardinality(2)) ASC, event_time ASC NULLS FIRST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 927 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 929 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 930 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', materialize(3), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', materialize(3), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: UInt8: In scope WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', materialize(3), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 931 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT NULL ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = toNullable(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT NULL) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = toNullable(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT expression must be constant with numeric type. Actual NULL. In scope (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT NULL) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, String&&, String&&) @ 0x0000000007b6672c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f3938 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 933 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'toString'. Expected 1 argument, got 3 arguments: In scope WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), POWER(toNullable(3), 2), time)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. std::shared_ptr std::__function::__policy_invoker (std::vector> const&)>::__call_impl::getReturnTypeImpl(std::vector> const&) const::'lambda'(auto const&), std::shared_ptr (std::vector> const&)>>(std::__function::__policy_storage const*, std::vector> const&) @ 0x00000000079b5ad0 6. DB::(anonymous namespace)::FunctionConvert::getReturnTypeImpl(std::vector> const&) const @ 0x00000000079a55cf 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 934 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE equals(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), current_database, currentDatabase()) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 2147483648 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE equals(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), current_database, currentDatabase()) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 2147483648) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE equals(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), current_database, currentDatabase()) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 2147483648) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 935 out of 1000 EXPLAIN QUERY TREE passes = true WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE passes = true WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 936 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) PREWHERE toNullable(toUInt256(materialize(toNullable(3)))) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) PREWHERE toNullable(toUInt256(materialize(toNullable(3))))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 937 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), materialize(toLowCardinality(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(2)), tupleElement(time, 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(2)), tupleElement(time, 2), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(2)), time.2, event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 939 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toInt128(-2147483648), toLowCardinality(3)), materialize(toLowCardinality(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(toUInt256(if(toUInt256(toNullable(2)), dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(toUInt128(3)), toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3)))) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toInt128(-2147483648), toLowCardinality(3)), materialize(toLowCardinality(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(toUInt256(if(toUInt256(toNullable(2)), dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(toUInt128(3)), toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3)))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope (SELECT event_time_microseconds, POW(toLowCardinality(toInt128(-2147483648), toLowCardinality(3)), materialize(toLowCardinality(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase(toUInt256(if(toUInt256(toNullable(2)), dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(toUInt128(3)), toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3)))) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 19. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 940 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), materialize(toLowCardinality(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 941 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(toLowCardinality(toUInt256(3)), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(toLowCardinality(toUInt256(3)), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT POW(toLowCardinality(toUInt256(3)), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 942 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), materialize(toLowCardinality(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() GROUP BY toNullable(3), materialize(toLowCardinality(toNullable(2))) ORDER BY event_time DESC NULLS LAST LIMIT -2147483648 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', '01473_query_log_table_event_start_time_microseconds_test', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), materialize(toLowCardinality(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() GROUP BY toNullable(3), materialize(toLowCardinality(toNullable(2))) ORDER BY event_time DESC NULLS LAST LIMIT -2147483648) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', '01473_query_log_table_event_start_time_microseconds_test', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 943 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 945 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT POW(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT POW(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 2)), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT POW(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 EXPLAIN indexes = true, json = true WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt256(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1 ) AS time SELECT POW(3, toNullable(2)) Error on processing query 'EXPLAIN indexes = true, json = true WITH (SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt256(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1) AS time SELECT POW(3, toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 949 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt128(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1024 ) AS time SELECT POW(3, toNullable(2)) Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt128(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC LIMIT 1024 ) AS time SELECT POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt128(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE current_database = currentDatabase() ORDER BY event_time ASC NULLS FIRST LIMIT 1024 ) AS time SELECT POW(3, 2) Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 WITH ( SELECT event_time_microseconds, POW(toLowCardinality(3), toLowCardinality(dateDiff('second', 6, toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), time, 2))) = 0, toUInt128(2))), event_time FROM system.query_thread_log PREWHERE current_database = currentDatabase() WHERE equals(if(dateDiff('second', pow(toLowCardinality(2)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)), time)), current_database, currentDatabase()) ORDER BY event_time ASC LIMIT 1024 ) AS time SELECT POW(3, 2) Current AST is too long, discarding it and using the original AST as a start Fuzzing step 953 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY 'ok', toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), POW(3, 2) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY 'ok', toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), POW(3, 2) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY 'ok', toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), POW(3, 2) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 954 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(1))))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(1))))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Second argument to tupleElement must be a constant UInt or String: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality(toUInt128(1))))), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::(anonymous namespace)::FunctionTupleElement::getElementIndex(COW::immutable_ptr const&, DB::DataTypeTuple const&, unsigned long) const @ 0x000000000e53866e 5. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537e5d 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 955 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 956 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toUInt256(0), toLowCardinality(3) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toUInt256(0), toLowCardinality(3) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Column system.query_thread_log.event_time is not under aggregate function and not in GROUP BY keys. In query (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY toUInt256(0), toLowCardinality(3) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 958 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT -2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT -2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: LIMIT numeric constant expression is not representable as UInt64. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:800: DB::QueryAnalyzer::convertLimitOffsetExpression(std::shared_ptr&, String const&, DB::IdentifierResolveScope&) @ 0x00000000174f39c8 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de781 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 959 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(toNullable(toUInt256(3)), toNullable(toNullable(2))), 2), toString(time)), current_database, currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(toNullable(toUInt256(3)), toNullable(toNullable(2))), 2), toString(time)), current_database, currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(toNullable(toUInt256(3)), toNullable(toNullable(2))), 2), toString(time)), current_database, currentDatabase()) ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 29. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 Fuzzing step 960 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', power(toNullable(3), toLowCardinality(2)), toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', power(toNullable(3), toLowCardinality(2)), toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 2nd argument 'startdate' to function 'dateDiff'. Expected: Date[32] or DateTime[64], got: Float64: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', power(toNullable(3), toLowCardinality(2)), toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 961 out of 1000 EXPLAIN PIPELINE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(currentDatabase()) ORDER BY event_time DESC LIMIT 0.5 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(currentDatabase()) ORDER BY event_time DESC LIMIT 0.5) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(currentDatabase()) ORDER BY event_time DESC LIMIT 0.5) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 965 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 966 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) DESC, event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(toLowCardinality(toUInt256(0))), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) DESC, event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(toLowCardinality(toUInt256(0))), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2))) DESC, event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 24. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 967 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(0), dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(0), dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'dateDiff'. Expected 3 mandatory arguments and 1 optional argument, got 2 arguments: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toNullable(0), dateDiff(toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::(anonymous namespace)::FunctionDateDiff::getReturnTypeImpl(std::vector> const&) const @ 0x00000000094c0b59 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 968 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 969 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY equals(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))), toLowCardinality(3), materialize(toLowCardinality(0))) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY equals(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))), toLowCardinality(3), materialize(toLowCardinality(0))) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() GROUP BY equals(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))), toLowCardinality(3), materialize(toLowCardinality(0))) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 970 out of 1000 EXPLAIN TABLE OVERRIDE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN TABLE OVERRIDE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('event_time_microseconds'): event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(. Expected one of: token sequence, Dot, token, Comma, ClosingRoundBracket, OR, AND, IS NOT DISTINCT FROM, IS NULL, IS NOT NULL, BETWEEN, NOT BETWEEN, LIKE, ILIKE, NOT LIKE, NOT ILIKE, REGEXP, IN, NOT IN, GLOBAL IN, GLOBAL NOT IN, MOD, DIV, alias, AS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 971 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toLowCardinality(materialize(toLowCardinality(toNullable(toLowCardinality(toUInt128(2)))))), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toLowCardinality(materialize(toLowCardinality(toNullable(toLowCardinality(toUInt128(2)))))), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: First argument for function tupleElement must be tuple or array of tuple. Actual Nullable(UInt128): In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(toLowCardinality(materialize(toLowCardinality(toNullable(toLowCardinality(toUInt128(2)))))), time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e537fff 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 972 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE POWER(materialize(2), toNullable(3)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) PREWHERE POWER(materialize(2), toNullable(3))': Received from localhost:9000. DB::Exception: Storage SystemOne (table system.one (9f245b3d-4567-42f4-be01-140ead4f973e)) does not support PREWHERE. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757df81 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 973 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 974 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC LIMIT 1 ) AS time SELECT toNullable(toUInt256(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toNullable(toUInt256(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log ORDER BY event_time ASC LIMIT 1) AS time SELECT toNullable(toUInt256(3)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 975 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(equals(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)), dateDiff('second', toDateTime(time.2)), 0), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)), dateDiff('second', toDateTime(time.2)), 0), 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(equals(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)), dateDiff('second', toDateTime(time.2)), 0), 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 976 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 977 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 978 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toUInt128(2, 57) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toUInt128(2, 57) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2))), 'ok', toString(time))': 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 event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toUInt128(2, 57) WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 979 out of 1000 WITH ( SELECT event_time_microseconds, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope (SELECT event_time_microseconds, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time. Maybe you meant: ['time']. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 25. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 980 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), time.2)) = 0, 'ok', toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 981 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 982 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(tupleElement(time, toNullable(toUInt128(1)))), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time) WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS LAST LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 17. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 983 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(materialize(2), current_database, currentDatabase()) ORDER BY event_time DESC LIMIT 1 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(materialize(2), current_database, currentDatabase()) ORDER BY event_time DESC LIMIT 1) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 3, should be 2: In scope (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE equals(materialize(2), current_database, currentDatabase()) ORDER BY event_time DESC LIMIT 1) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 984 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 EXPLAIN WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d Fuzzing step 986 out of 1000 EXPLAIN QUERY TREE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN QUERY TREE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 29. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 31. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 Fuzzing step 987 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 988 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 989 out of 1000 WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE '01473_metric_log_table_event_start_time_microseconds_test' WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toString(2, 57, POWER(2, toLowCardinality(toLowCardinality(3))), time) Error on processing query 'WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE '01473_metric_log_table_event_start_time_microseconds_test' WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WHERE toString(2, 57, POWER(2, toLowCardinality(toLowCardinality(3))), time)': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query (SELECT event_time_microseconds, event_time FROM system.query_thread_log PREWHERE '01473_metric_log_table_event_start_time_microseconds_test' WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3783: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e599d 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 990 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 991 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 992 out of 1000 EXPLAIN SYNTAX WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 993 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 995 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 996 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 997 out of 1000 EXPLAIN ESTIMATE WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN ESTIMATE WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Scalar subquery returned more than one row. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:571: DB::QueryAnalyzer::evaluateScalarSubqueryIfNeeded(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000174f19cd 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e601e 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::tryResolveIdentifierFromAliases(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f624c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:1388: DB::QueryAnalyzer::tryResolveIdentifier(DB::IdentifierLookup const&, DB::IdentifierResolveScope&, DB::IdentifierResolveSettings) @ 0x00000000174f72ef 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5dce 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 Fuzzing step 998 out of 1000 EXPLAIN AST WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Got boring AST Fuzzing step 999 out of 1000 EXPLAIN CURRENT TRANSACTION WITH ( SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2 ) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) Error on processing query 'EXPLAIN CURRENT TRANSACTION WITH (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 2) AS time SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time))': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('('): (SELECT event_time_microseconds, event_time FROM system.query_thread_log WHERE current_database = currentDatabase() ORDER BY event_time DESC NULLS FIRST LIMIT 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 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 clear_column__fuzz_0 ( `x` LowCardinality(UInt32), `y` UInt16 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 2 out of 50 CREATE TABLE clear_column__fuzz_1 ( `x` LowCardinality(UInt32), `y` UInt16 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 3 out of 50 CREATE TABLE clear_column__fuzz_2 ( `x` Array(LowCardinality(UInt32)), `y` Array(UInt16) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 4 out of 50 CREATE TABLE clear_column__fuzz_3 ( `x` Array(Array(LowCardinality(UInt32))), `y` Array(UInt16) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 5 out of 50 CREATE TABLE clear_column__fuzz_4 ( `x` Array(Array(LowCardinality(UInt32))), `y` Array(Array(UInt16)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 6 out of 50 CREATE TABLE clear_column__fuzz_5 ( `x` Array(Array(LowCardinality(UInt32))), `y` Array(Array(UInt16)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 7 out of 50 CREATE TABLE clear_column__fuzz_6 ( `x` Array(Array(Array(LowCardinality(UInt32)))), `y` Int32 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 8 out of 50 CREATE TABLE clear_column__fuzz_7 ( `x` Array(UInt16), `y` Int32 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 9 out of 50 CREATE TABLE clear_column__fuzz_8 ( `x` Array(UInt16), `y` Int32 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 10 out of 50 CREATE TABLE clear_column__fuzz_9 ( `x` Array(LowCardinality(UInt16)), `y` Int32 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 11 out of 50 CREATE TABLE clear_column__fuzz_10 ( `x` Array(LowCardinality(UInt16)), `y` Int32 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 12 out of 50 CREATE TABLE clear_column__fuzz_11 ( `x` Array(Nullable(UInt16)), `y` Int32 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 13 out of 50 CREATE TABLE clear_column__fuzz_12 ( `x` Array(LowCardinality(UInt16)), `y` LowCardinality(Int32) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 14 out of 50 CREATE TABLE clear_column__fuzz_13 ( `x` Array(LowCardinality(UInt16)), `y` LowCardinality(Nullable(Int32)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 15 out of 50 CREATE TABLE clear_column__fuzz_14 ( `x` Array(LowCardinality(UInt16)), `y` LowCardinality(Int32) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 16 out of 50 CREATE TABLE clear_column__fuzz_15 ( `x` UInt16, `y` LowCardinality(Int32) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 17 out of 50 CREATE TABLE clear_column__fuzz_16 ( `x` Nullable(UInt16), `y` String ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 18 out of 50 CREATE TABLE clear_column__fuzz_17 ( `x` LowCardinality(UInt16), `y` Nullable(String) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 19 out of 50 CREATE TABLE clear_column__fuzz_18 ( `x` LowCardinality(UInt16), `y` Nullable(String) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 20 out of 50 CREATE TABLE clear_column__fuzz_19 ( `x` UInt128, `y` Nullable(String) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 21 out of 50 CREATE TABLE clear_column__fuzz_20 ( `x` UInt128, `y` LowCardinality(Nullable(String)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 22 out of 50 CREATE TABLE clear_column__fuzz_21 ( `x` UInt128, `y` LowCardinality(Nullable(String)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 23 out of 50 CREATE TABLE clear_column__fuzz_22 ( `x` UInt128, `y` LowCardinality(Nullable(String)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 24 out of 50 CREATE TABLE clear_column__fuzz_23 ( `x` Int32, `y` Nullable(String) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 25 out of 50 CREATE TABLE clear_column__fuzz_24 ( `x` Int32, `y` Nullable(String) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 26 out of 50 CREATE TABLE clear_column__fuzz_25 ( `x` Nullable(Int32), `y` Nullable(String) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 27 out of 50 CREATE TABLE clear_column__fuzz_26 ( `x` Nullable(Int32), `y` Float32 ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 28 out of 50 CREATE TABLE clear_column__fuzz_27 ( `x` Decimal(38, 28), `y` LowCardinality(Float32) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 29 out of 50 CREATE TABLE clear_column__fuzz_28 ( `x` Nullable(Decimal(38, 28)), `y` LowCardinality(Float32) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 30 out of 50 CREATE TABLE clear_column__fuzz_29 ( `x` Decimal(38, 28), `y` LowCardinality(Float32) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 31 out of 50 CREATE TABLE clear_column__fuzz_30 ( `x` Array(Decimal(38, 28)), `y` LowCardinality(Float32) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 32 out of 50 CREATE TABLE clear_column__fuzz_31 ( `x` Array(Decimal(38, 28)), `y` Array(LowCardinality(Float32)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 33 out of 50 CREATE TABLE clear_column__fuzz_32 ( `x` Array(UInt128), `y` Array(LowCardinality(Float32)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 34 out of 50 CREATE TABLE clear_column__fuzz_33 ( `x` Array(Nullable(UInt128)), `y` Array(Array(Float32)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 35 out of 50 CREATE TABLE clear_column__fuzz_34 ( `x` Array(LowCardinality(Nullable(UInt128))), `y` Array(FixedString(10)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 36 out of 50 CREATE TABLE clear_column__fuzz_35 ( `x` Decimal(18, 11), `y` Array(Nullable(FixedString(10))) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 37 out of 50 CREATE TABLE clear_column__fuzz_36 ( `x` Decimal(18, 11), `y` Array(LowCardinality(Nullable(FixedString(10)))) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 38 out of 50 CREATE TABLE clear_column__fuzz_37 ( `x` Decimal(18, 11), `y` Array(LowCardinality(FixedString(10))) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 39 out of 50 CREATE TABLE clear_column__fuzz_38 ( `x` Decimal(18, 11), `y` Array(LowCardinality(Int256)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 40 out of 50 CREATE TABLE clear_column__fuzz_39 ( `x` Decimal(18, 11), `y` Array(Int256) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 41 out of 50 CREATE TABLE clear_column__fuzz_40 ( `x` Decimal(18, 11), `y` Array(Int256) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 42 out of 50 CREATE TABLE clear_column__fuzz_41 ( `x` Nullable(Decimal(18, 11)), `y` Array(LowCardinality(Int256)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 43 out of 50 CREATE TABLE clear_column__fuzz_42 ( `x` Nullable(Decimal(18, 11)), `y` Array(UInt256) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 44 out of 50 CREATE TABLE clear_column__fuzz_43 ( `x` Nullable(Decimal(18, 11)), `y` Array(UInt256) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 45 out of 50 CREATE TABLE clear_column__fuzz_44 ( `x` Decimal(18, 11), `y` Array(UInt256) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 46 out of 50 CREATE TABLE clear_column__fuzz_45 ( `x` Decimal(18, 11), `y` Array(UInt256) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 47 out of 50 CREATE TABLE clear_column__fuzz_46 ( `x` Decimal(18, 11), `y` Array(LowCardinality(UInt256)) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 48 out of 50 CREATE TABLE clear_column__fuzz_47 ( `x` Decimal(18, 11), `y` Array(Array(LowCardinality(UInt256))) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 49 out of 50 CREATE TABLE clear_column__fuzz_48 ( `x` Int256, `y` Array(Array(LowCardinality(UInt256))) ) ENGINE = MergeTree PARTITION BY x ORDER BY x Query succeeded, using this AST as a start Fuzzing step 0 out of 1 Query succeeded, using this AST as a start INSERT INTO clear_column__fuzz_43 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_42 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_40 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_37 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_47 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_35 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_33 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_36 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_31 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_28 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_38 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_27 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_7 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_29 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_39 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_26 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_5 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_20 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_24 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_21 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_14 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_18 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_45 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_32 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_17 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_34 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_12 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_10 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_13 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_16 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_48 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_8 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_3 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_0 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_4 FORMAT Values (1, 1), (2, 3); INSERT INTO clear_column__fuzz_1 FORMAT Values (1, 1), (2, 3); Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 2 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 3 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 4 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 5 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 6 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 7 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 8 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 9 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 10 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 11 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 12 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2)': Received from localhost:9000. DB::Exception: Cannot convert value '-2': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 13 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 14 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 15 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 16 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 17 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 18 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 19 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 20 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 21 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 23 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 24 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 25 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 26 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 27 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 28 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 29 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 30 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 31 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 32 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 33 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 34 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 35 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 36 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 37 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 38 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 39 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 40 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 41 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 42 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 43 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 45 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 46 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 47 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 48 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 49 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 51 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 53 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 54 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 55 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 56 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 57 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 58 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 59 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 60 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 61 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 62 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 63 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 64 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 65 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 66 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 67 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 68 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 69 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 70 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 71 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 72 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 73 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 74 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 75 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 76 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 77 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 78 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 80 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 81 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 82 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 83 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 84 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 85 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 86 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 87 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 88 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 89 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 90 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 91 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 93 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 94 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 95 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 96 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 97 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775808': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 98 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 99 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 100 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 101 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 102 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 103 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 104 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 105 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 106 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 107 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 108 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 109 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 110 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 111 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 112 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 113 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 114 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 115 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 116 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 117 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 118 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 119 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 120 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 121 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 122 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 123 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 124 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 125 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 126 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 127 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 128 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 130 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 131 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483649) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483649)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483649': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 132 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 133 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 134 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2)': Received from localhost:9000. DB::Exception: Cannot convert value '-2': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 135 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 136 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 137 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 138 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 139 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 140 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 141 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 142 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 143 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 144 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 145 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 146 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 147 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483647': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 148 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 149 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 150 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 151 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 152 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 153 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 154 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 155 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 156 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 157 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 158 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 159 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 160 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 161 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 162 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 163 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 164 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 165 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 166 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 168 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 169 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 170 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 171 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 172 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 173 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 174 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 175 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 176 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 177 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 178 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 179 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 180 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 181 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 182 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 183 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 184 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 185 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 186 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 188 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 189 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 190 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 191 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 192 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 194 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 195 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 196 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 197 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 198 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 199 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 200 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 201 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 202 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 204 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 205 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 207 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 208 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 209 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 210 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 211 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 212 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 213 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 214 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 215 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 216 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 217 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 218 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 219 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 220 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 221 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 222 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 223 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 224 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 225 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 226 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 227 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 228 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 229 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 230 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 231 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 232 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 233 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 234 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 235 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 236 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 237 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 238 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 239 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 240 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 241 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 242 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 243 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 244 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 245 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 246 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 247 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 248 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 249 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 251 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 252 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 253 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 254 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 255 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 256 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 257 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 258 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 259 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 260 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 261 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 262 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 263 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 264 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 265 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 266 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 267 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 268 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 269 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 270 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 271 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 272 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 274 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 275 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 276 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 277 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 278 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 279 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 280 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 281 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 282 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 283 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 284 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 285 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 286 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 287 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 288 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 289 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 290 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483648': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 291 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 292 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 293 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 294 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 295 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 296 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 297 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 298 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 299 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 300 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 301 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 302 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 303 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 304 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 305 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 307 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 308 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 309 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 310 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 311 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 312 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 313 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 314 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 315 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 316 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 317 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 318 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 319 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 320 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 321 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 323 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 325 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 326 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 327 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 328 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 329 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 330 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 331 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 332 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 333 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 334 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 335 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 336 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 337 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 338 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 339 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 340 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 341 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 342 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 343 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 344 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 345 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 346 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 347 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 348 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 349 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 350 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 351 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 352 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 353 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 354 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 355 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 356 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 357 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 358 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 359 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 361 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 362 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 363 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 364 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 366 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 367 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 368 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 369 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 370 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 371 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 372 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 373 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 374 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 376 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 377 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 378 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 379 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 381 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775808': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 382 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 383 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 384 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 385 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 386 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 387 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 388 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 389 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 391 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 392 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 393 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 394 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 395 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 396 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 397 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 398 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 399 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 401 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 402 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 403 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 404 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 405 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 406 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 407 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 408 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 409 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 410 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 411 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 412 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 413 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 415 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 416 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 417 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 418 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 419 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 420 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 421 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 423 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 424 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 425 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 426 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 427 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 428 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 429 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 430 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 431 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 432 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 433 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 434 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 435 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 436 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 437 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 438 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 439 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 441 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 442 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 443 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 444 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 445 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 447 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 448 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '104857.7') Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '104857.7')': Received from localhost:9000. DB::Exception: Cannot convert string '104857.7' to type UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&&) @ 0x00000000095851e6 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x00000000182172b9 5. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018213469 6. ./src/Core/Field.h:459: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x00000000182175ee 7. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 9. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 10. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 11. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 449 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 450 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 451 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 452 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 453 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 454 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 455 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 456 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 457 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 458 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 459 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 460 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 461 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 462 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 463 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 464 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 465 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 466 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 467 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 468 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 469 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 470 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 471 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 473 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 474 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 475 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 476 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 477 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 478 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 479 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 480 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10000000000.) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10000000000.)': Received from localhost:9000. DB::Exception: Cannot convert value '10000000000': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 481 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 482 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 483 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 484 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 486 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 488 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 489 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 490 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 491 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 492 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 493 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 494 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 495 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 496 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1)': Received from localhost:9000. DB::Exception: Cannot convert value '-1': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 497 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 498 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 499 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 500 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 501 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 502 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 503 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 504 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 505 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 507 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 508 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 509 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 510 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 511 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 512 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 513 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 514 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 516 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 517 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 518 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 519 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 520 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 522 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 523 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 524 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 525 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 526 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 527 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 529 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 530 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 531 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 532 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 534 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 535 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 536 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 537 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 538 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 540 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 541 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 542 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 543 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 544 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 545 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 546 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 547 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 548 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 549 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 550 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 551 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483648': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 552 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 553 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 554 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 555 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483647': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 556 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 557 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 558 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 559 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 560 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 561 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 562 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 563 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 564 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 565 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 566 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 567 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 568 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 569 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 570 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 571 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 573 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 574 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 575 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 576 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 577 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 578 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 579 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 580 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 581 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 582 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 583 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 584 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 585 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 586 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 587 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 588 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 589 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 590 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 591 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 592 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 593 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 595 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 596 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 597 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 598 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 599 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 600 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 601 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 603 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 605 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 607 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 608 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 610 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 611 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 612 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 613 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 614 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 615 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 616 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 617 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 618 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 619 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 620 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 621 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 622 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 623 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 624 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 625 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 626 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 627 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 628 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 629 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 630 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 631 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 632 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 633 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 634 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 635 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 636 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 637 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 638 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 639 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 640 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 641 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 642 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 643 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 644 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 645 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 646 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 647 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 648 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 649 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 650 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 651 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 652 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 653 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 655 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 656 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 657 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 658 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 659 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 661 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 662 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 663 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 664 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 665 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 666 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 667 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 668 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 669 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 670 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 672 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 673 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 674 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 675 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 676 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 677 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 678 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 679 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 680 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 681 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 682 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 683 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 684 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 685 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 686 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 687 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 688 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 689 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 690 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 691 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 692 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 693 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 694 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 695 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 696 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 697 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 698 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 699 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 700 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 701 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 702 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 703 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 704 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 705 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 706 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 708 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 709 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 710 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 711 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 712 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 713 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 714 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 715 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 716 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 717 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 718 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 719 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 720 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 721 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 722 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 723 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 724 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 725 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 726 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 727 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 728 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 729 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 730 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 731 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 732 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 733 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 734 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 735 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 736 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 737 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 738 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 739 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 740 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 741 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 742 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 743 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 744 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 745 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 746 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 747 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 748 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 749 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 750 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775808': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 751 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 752 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 753 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 754 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 755 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 756 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 757 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 758 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 759 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 761 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 763 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 764 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 765 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 766 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 767 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 768 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 769 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 770 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 771 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 772 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 773 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 774 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 775 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 776 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 777 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 778 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 779 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 780 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 782 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 783 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 784 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 786 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 787 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 788 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 789 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 790 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 791 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 792 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 793 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 794 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 795 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 796 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 797 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 798 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 799 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 800 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 801 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 802 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 803 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 804 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 805 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 806 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 807 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 808 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 809 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 810 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 811 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483649) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483649)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483649': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 812 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 813 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 814 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 815 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2)': Received from localhost:9000. DB::Exception: Cannot convert value '-2': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 816 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 817 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 818 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 819 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 820 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 822 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 823 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 824 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 825 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 826 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 827 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 828 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 829 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 830 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 831 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 832 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 833 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 835 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 836 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 837 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 838 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 839 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 841 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 842 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 843 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 844 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 845 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 847 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 848 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 849 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 850 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 851 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 852 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 854 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 855 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 856 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 857 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 858 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 859 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 860 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 861 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 862 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 863 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 864 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 865 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 866 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 867 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 868 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 870 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 871 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 872 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 873 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 874 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 875 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 876 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 878 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 879 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 880 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 881 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 882 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 883 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 884 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 885 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 886 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 887 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 888 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 889 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 890 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 891 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 892 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 893 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 894 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 895 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 896 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 898 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 899 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775806': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 902 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 903 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 904 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 905 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 906 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 907 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 908 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 909 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 910 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 911 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 912 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 913 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 914 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 915 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 916 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 917 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 918 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 919 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 921 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 922 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 923 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 924 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 926 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 928 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 929 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 930 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 931 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 932 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 933 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 934 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 935 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 936 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 937 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 938 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 940 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 941 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 943 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 944 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 945 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 946 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 947 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 949 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 950 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 951 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 952 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 953 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 954 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 955 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 956 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 957 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 958 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 959 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 960 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 961 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 962 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 963 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 964 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 966 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 967 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 968 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 969 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 970 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 971 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 972 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 973 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 974 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 975 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 976 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 978 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 979 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 980 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 981 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 982 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483648': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 983 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 984 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 985 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 986 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 988 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 989 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 990 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 992 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 993 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 994 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 995 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 996 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 997 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 998 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 999 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT * FROM clear_column ORDER BY x ASC Got boring AST Fuzzing step 2 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 7 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 9 out of 1000 SELECT clear_column__fuzz_32, * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Error on processing query 'SELECT clear_column__fuzz_32, * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_32' in scope SELECT clear_column__fuzz_32, * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 10 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 12 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 EXPLAIN PIPELINE header = true SELECT * FROM clear_column__fuzz_24 ORDER BY x ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT * FROM clear_column__fuzz_24 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 26 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 28 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 29 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 31 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_28 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 33 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 34 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_28 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 35 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 38 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 39 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 41 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 44 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 46 out of 1000 SELECT dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT dateDiff('second', toDateTime(time.1), toDateTime(time.2)), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 47 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x ASC Got boring AST Fuzzing step 49 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 53 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 54 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 55 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 57 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 60 out of 1000 EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('*'): * FROM clear_column__fuzz_0 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 61 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 62 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 63 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 68 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x DESC Got boring AST Fuzzing step 75 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x DESC Got boring AST Fuzzing step 76 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x DESC Got boring AST Fuzzing step 77 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC Got boring AST Fuzzing step 79 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC Got boring AST Fuzzing step 80 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT * FROM clear_column__fuzz_28 PREWHERE toString(toUInt128(57), POWER(toNullable(3), 2), time) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(materialize(toLowCardinality(57)), 0)), toFixedString(toNullable(2)), toString(time)) ORDER BY x ASC NULLS LAST Error on processing query 'SELECT * FROM clear_column__fuzz_28 PREWHERE toString(toUInt128(57), POWER(toNullable(3), 2), time) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(materialize(toLowCardinality(57)), 0)), toFixedString(toNullable(2)), toString(time)) ORDER BY x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT * FROM clear_column__fuzz_28 PREWHERE toString(toUInt128(57), POWER(toNullable(3), 2), time) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(materialize(toLowCardinality(57)), 0)), toFixedString(toNullable(2)), toString(time)) ORDER BY x ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 93 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 94 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 96 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_27 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 98 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 99 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 102 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 103 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 105 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC NULLS FIRST, x ASC Error on processing query 'SELECT * FROM clear_column__fuzz_27 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC NULLS FIRST, x ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT * FROM clear_column__fuzz_27 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC NULLS FIRST, x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 115 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)) ASC, x ASC Error on processing query 'SELECT * FROM clear_column__fuzz_27 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)) ASC, x ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT * FROM clear_column__fuzz_27 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)) ASC, x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 116 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC Got boring AST Fuzzing step 118 out of 1000 SELECT * FROM clear_column__fuzz_28 WHERE POW(3, toLowCardinality(2)) ORDER BY x ASC Error on processing query 'SELECT * FROM clear_column__fuzz_28 WHERE POW(3, toLowCardinality(2)) ORDER BY x ASC': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 119 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2) ASC, x ASC Error on processing query 'SELECT * FROM clear_column__fuzz_28 ORDER BY pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2) ASC, x ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT * FROM clear_column__fuzz_28 ORDER BY pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2) ASC, x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 120 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 124 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 127 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 128 out of 1000 SELECT 257, * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 SELECT 257, * FROM clear_column__fuzz_24 ORDER BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time) ASC, x DESC NULLS FIRST Error on processing query 'SELECT 257, * FROM clear_column__fuzz_24 ORDER BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time) ASC, x DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 257, * FROM clear_column__fuzz_24 ORDER BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time) ASC, x DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 130 out of 1000 SELECT 257, toLowCardinality(toNullable(toUInt128(3))), * FROM clear_column__fuzz_24 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT 257, toLowCardinality(toNullable(toUInt128(3))), * FROM clear_column__fuzz_24 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT 257, toLowCardinality(toNullable(toUInt128(3))), * FROM clear_column__fuzz_24 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT 257, if(dateDiff('second', toDateTime('01473_query_thread_log_table_event_start_time_microseconds_test', 63, tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)), toLowCardinality(toUInt128(3)), * FROM clear_column__fuzz_24 ORDER BY x DESC Error on processing query 'SELECT 257, if(dateDiff('second', toDateTime('01473_query_thread_log_table_event_start_time_microseconds_test', 63, tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)), toLowCardinality(toUInt128(3)), * FROM clear_column__fuzz_24 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 257, if(dateDiff('second', toDateTime('01473_query_thread_log_table_event_start_time_microseconds_test', 63, time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)), toLowCardinality(toUInt128(3)), * FROM clear_column__fuzz_24 ORDER BY x DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 134 out of 1000 SELECT 257, toLowCardinality(toNullable(toUInt128(3))), * FROM clear_column__fuzz_1 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 GROUP BY pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, 2), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))), toUInt128(3)) ORDER BY x ASC Error on processing query 'EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 GROUP BY pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, 2), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))), toUInt128(3)) ORDER BY x ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 GROUP BY pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, 2), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))), toUInt128(3)) ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 22. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 136 out of 1000 SELECT 257, toLowCardinality(toNullable(toUInt128(3))), * FROM clear_column__fuzz_1 ORDER BY x DESC Got boring AST Fuzzing step 137 out of 1000 SELECT 257, toLowCardinality(toNullable(toUInt128(3))), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 EXPLAIN PIPELINE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 142 out of 1000 EXPLAIN PIPELINE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN PIPELINE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 144 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('257'): 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 145 out of 1000 EXPLAIN PIPELINE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 146 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 149 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 151 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('257'): 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 152 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 153 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 154 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 155 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 156 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 SELECT 257, toUInt128(3), * FROM clear_column__fuzz_1 GROUP BY materialize(toNullable(toUInt256(2))), toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)), 56)) ORDER BY x ASC Error on processing query 'SELECT 257, toUInt128(3), * FROM clear_column__fuzz_1 GROUP BY materialize(toNullable(toUInt256(2))), toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)), 56)) ORDER BY x ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 257, toUInt128(3), * FROM clear_column__fuzz_1 GROUP BY materialize(toNullable(toUInt256(2))), toLowCardinality(toFixedString('01473_query_log_table_event_start_time_microseconds_test', if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(2, 3), time)), 56)) ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 160 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 161 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 163 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 165 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 166 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 168 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 170 out of 1000 EXPLAIN AST SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 171 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 173 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 174 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 175 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 176 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 177 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 180 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 181 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 182 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 183 out of 1000 EXPLAIN SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 184 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('257'): 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 185 out of 1000 EXPLAIN ESTIMATE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('257'): 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 187 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('257'): 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 189 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('257'): 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 190 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('257'): 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 191 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 192 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 193 out of 1000 EXPLAIN QUERY TREE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Got boring AST Fuzzing step 194 out of 1000 EXPLAIN PIPELINE SELECT 257, toNullable(toUInt128(3)), * FROM clear_column__fuzz_17 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT 257, toNullable(toUInt128(3)) FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT 257, toNullable(3) FROM clear_column__fuzz_16 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT 257, toNullable(3) FROM clear_column__fuzz_1 PREWHERE pow(power(3, 2), 3, 2) ORDER BY x ASC Error on processing query 'SELECT 257, toNullable(3) FROM clear_column__fuzz_1 PREWHERE pow(power(3, 2), 3, 2) ORDER BY x ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 257, toNullable(3) FROM clear_column__fuzz_1 PREWHERE pow(power(3, 2), 3, 2) ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 198 out of 1000 SELECT 257, toNullable(3) FROM clear_column__fuzz_16 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT 257, toNullable(3) FROM clear_column__fuzz_24 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_18 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_26 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_26 ORDER BY x ASC Got boring AST Fuzzing step 203 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_0 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_24 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_28 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_16 ORDER BY x DESC Got boring AST Fuzzing step 208 out of 1000 SELECT toInt128(257), 3 FROM clear_column__fuzz_17 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_17 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 212 out of 1000 EXPLAIN QUERY TREE SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN SYNTAX SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 EXPLAIN SYNTAX SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 215 out of 1000 EXPLAIN AST SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 EXPLAIN SYNTAX SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 EXPLAIN PIPELINE SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 EXPLAIN SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('257'): 257, 3 FROM clear_column__fuzz_29 ORDER BY x DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 220 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_16 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_17 GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), toFixedString(2, toLowCardinality('ok'), 2), toNullable(57) ORDER BY x DESC NULLS LAST Error on processing query 'SELECT 257, 3 FROM clear_column__fuzz_17 GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), toFixedString(2, toLowCardinality('ok'), 2), toNullable(57) ORDER BY x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 257, 3 FROM clear_column__fuzz_17 GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), toFixedString(2, toLowCardinality('ok'), 2), toNullable(57) ORDER BY x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 222 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_16 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 223 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_24 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_24 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 EXPLAIN AST graph = true SELECT 257, toUInt128(3) FROM clear_column__fuzz_16 ORDER BY x DESC Error on processing query 'EXPLAIN AST graph = true SELECT 257, toUInt128(3) FROM clear_column__fuzz_16 ORDER BY x DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 227 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_24 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 228 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 ORDER BY x DESC Got boring AST Fuzzing step 230 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 ORDER BY x DESC Got boring AST Fuzzing step 231 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_28 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_17 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 235 out of 1000 SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 GROUP BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ORDER BY x DESC NULLS FIRST Error on processing query 'SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 GROUP BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ORDER BY x DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Column default.clear_column__fuzz_21.x is not under aggregate function and not in GROUP BY keys. In query SELECT 257, toUInt128(3) FROM clear_column__fuzz_21 GROUP BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ORDER BY x DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 236 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_21 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_20 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT 257, 3 FROM clear_column__fuzz_21 WHERE clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Error on processing query 'SELECT 257, 3 FROM clear_column__fuzz_21 WHERE clear_column__fuzz_0 ORDER BY x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_0' in scope SELECT 257, 3 FROM clear_column__fuzz_21 WHERE clear_column__fuzz_0 ORDER BY x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 239 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 241 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 242 out of 1000 SELECT 3 FROM clear_column__fuzz_0 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 EXPLAIN PIPELINE header = true SELECT materialize(3) FROM clear_column__fuzz_18 ORDER BY x DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT materialize(3) FROM clear_column__fuzz_18 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 246 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 247 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 249 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 250 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, 256 ASC, x DESC NULLS LAST Error on processing query 'SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, 256 ASC, x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 256 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, 256 ASC, x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de0ae 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 260 out of 1000 SELECT 3 FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT 3 FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 262 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT 3 FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 266 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC Got boring AST Fuzzing step 270 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x DESC NULLS FIRST Got boring AST Fuzzing step 274 out of 1000 SELECT materialize(3) FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 277 out of 1000 EXPLAIN AST SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 280 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 281 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 282 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 283 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 284 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 285 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 286 out of 1000 EXPLAIN AST SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 EXPLAIN AST SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 288 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 EXPLAIN PIPELINE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 EXPLAIN PIPELINE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 291 out of 1000 EXPLAIN PIPELINE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 292 out of 1000 EXPLAIN PIPELINE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 293 out of 1000 EXPLAIN PIPELINE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 294 out of 1000 EXPLAIN PIPELINE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 295 out of 1000 EXPLAIN PIPELINE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 296 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 298 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 299 out of 1000 EXPLAIN SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 302 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 303 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 304 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 305 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 308 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 309 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 310 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Got boring AST Fuzzing step 311 out of 1000 EXPLAIN SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 EXPLAIN SYNTAX SELECT materialize(3) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT materialize(3) FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT materialize(3) FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT materialize(3) FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT materialize(materialize(toUInt256(3))) FROM clear_column__fuzz_0 GROUP BY if(dateDiff('second', POWER(POW(3, 2), 2), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), toString(power(POWER(POW(toFixedString(3, '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), pow(3, 2), if(equals(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), toNullable(toUInt128(0))), toNullable(2), toString(time)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Error on processing query 'SELECT materialize(materialize(toUInt256(3))) FROM clear_column__fuzz_0 GROUP BY if(dateDiff('second', POWER(POW(3, 2), 2), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), toString(power(POWER(POW(toFixedString(3, '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), pow(3, 2), if(equals(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), toNullable(toUInt128(0))), toNullable(2), toString(time)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(materialize(toUInt256(3))) FROM clear_column__fuzz_0 GROUP BY if(dateDiff('second', POWER(POW(3, 2), 2), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), toString(power(POWER(POW(toFixedString(3, '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), time), pow(3, 2), if(equals(dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), toNullable(toUInt128(0))), toNullable(2), toString(time)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 317 out of 1000 SELECT materialize(3) FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT materialize(toLowCardinality(toUInt128(3))) FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT materialize(toLowCardinality(toUInt128(3))) FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT materialize(toLowCardinality(toUInt128(toLowCardinality(toNullable(3))))) FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT toLowCardinality(toUInt128(toLowCardinality(toNullable(3)))) FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT toUInt128(toLowCardinality(toNullable(3))) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT toLowCardinality(toNullable(3)) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT toNullable(3) FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT toUInt256(3) FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 330 out of 1000 SELECT 3 FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 335 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 SELECT 3 FROM clear_column__fuzz_17 GROUP BY POWER(POW(materialize(3), 2), toLowCardinality(2), 3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'SELECT 3 FROM clear_column__fuzz_17 GROUP BY POWER(POW(materialize(3), 2), toLowCardinality(2), 3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3 FROM clear_column__fuzz_17 GROUP BY POWER(POW(materialize(3), 2), toLowCardinality(2), 3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(2)), time)) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 337 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Got boring AST Fuzzing step 340 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Got boring AST Fuzzing step 350 out of 1000 SELECT 3 FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 SELECT toNullable(3) FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 SELECT toNullable(3) FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT toNullable(3) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT toNullable(3) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 SELECT toNullable(3) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 358 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 361 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 362 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 365 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 366 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toNullable'): toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 367 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('toNullable'): toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 368 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toNullable'): toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 370 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 371 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 372 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 373 out of 1000 EXPLAIN AST SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Got boring AST Fuzzing step 374 out of 1000 SELECT toNullable(3) FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT 3 FROM clear_column__fuzz_1 WHERE toLowCardinality(toLowCardinality(3)) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 377 out of 1000 SELECT 3 FROM clear_column__fuzz_1 WHERE toLowCardinality(toLowCardinality(3)) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 SELECT 3 FROM clear_column__fuzz_1 WHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 SELECT 3 FROM clear_column__fuzz_1 WHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS LAST Got boring AST Fuzzing step 380 out of 1000 SELECT 3 FROM clear_column__fuzz_27 WHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT 3 FROM clear_column__fuzz_27 PREWHERE materialize(toNullable(3), materialize(57)) WHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS LAST Error on processing query 'SELECT 3 FROM clear_column__fuzz_27 PREWHERE materialize(toNullable(3), materialize(57)) WHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x 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 SELECT 3 FROM clear_column__fuzz_27 PREWHERE materialize(toNullable(3), materialize(57)) WHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 382 out of 1000 SELECT 3 FROM clear_column__fuzz_18 WHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT 3 FROM clear_column__fuzz_29 PREWHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 SELECT 3 FROM clear_column__fuzz_29 PREWHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT 3 FROM clear_column__fuzz_29 PREWHERE toLowCardinality(3) ORDER BY 65535 ASC NULLS LAST, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Error on processing query 'SELECT 3 FROM clear_column__fuzz_29 PREWHERE toLowCardinality(3) ORDER BY 65535 ASC NULLS LAST, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Positional argument number 65535 is out of bounds. Expected in range [1, 1]. In scope SELECT 3 FROM clear_column__fuzz_29 PREWHERE toLowCardinality(3) ORDER BY 65535 ASC NULLS LAST, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de0ae 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 386 out of 1000 SELECT 3 FROM clear_column__fuzz_29 PREWHERE toLowCardinality(3) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 387 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 389 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 SELECT 3 FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT 3 FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Got boring AST Fuzzing step 397 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 EXPLAIN optimize = true SELECT 3 FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS FIRST Error on processing query 'EXPLAIN optimize = true SELECT 3 FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 401 out of 1000 EXPLAIN AST graph = true SELECT 3 FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Error on processing query 'EXPLAIN AST graph = true SELECT 3 FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 402 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)), 3 FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)), 3 FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)), 3 FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 406 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 EXPLAIN SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 410 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 411 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 414 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 415 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 416 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 417 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 418 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 419 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 421 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 422 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 424 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 426 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 427 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 428 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 429 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 430 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 431 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 432 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 433 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 434 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 435 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 436 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 438 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 439 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 440 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 441 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 443 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 444 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 445 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 446 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 447 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 448 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 449 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 450 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 451 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 452 out of 1000 EXPLAIN AST SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 454 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 457 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 458 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 459 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 460 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 461 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 48 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullabl. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 462 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Got boring AST Fuzzing step 463 out of 1000 EXPLAIN QUERY TREE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT 3 FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT materialize(3) FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT 3 FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Got boring AST Fuzzing step 473 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT 3 FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT 3 FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Got boring AST Fuzzing step 480 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC Got boring AST Fuzzing step 484 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 49 ('3'): 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 486 out of 1000 SELECT toLowCardinality(3) FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 SELECT toLowCardinality(3) FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC NULLS LAST Got boring AST Fuzzing step 488 out of 1000 SELECT toLowCardinality(3) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT 3 FROM clear_column__fuzz_16 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT 3 FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 499 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 500 out of 1000 EXPLAIN ESTIMATE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 503 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 504 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 505 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 506 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 507 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_qu. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 508 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 509 out of 1000 EXPLAIN SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN AST SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 513 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 514 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 515 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 516 out of 1000 EXPLAIN AST SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 519 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 520 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 521 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 522 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 50 ('3'): 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_qu. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 523 out of 1000 EXPLAIN PIPELINE SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 524 out of 1000 EXPLAIN SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 EXPLAIN SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 526 out of 1000 EXPLAIN SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 527 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 529 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 530 out of 1000 EXPLAIN SYNTAX SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST, x ASC NULLS FIRST Got boring AST Fuzzing step 531 out of 1000 SELECT 3 FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT 3 FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(toUInt256(0)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(2, 57, POWER(toUInt256(2), 3, 2), time)), 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS FIRST Error on processing query 'SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(toUInt256(0)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(2, 57, POWER(toUInt256(2), 3, 2), time)), 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt256(0)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(2, 57, POWER(toUInt256(2), 3, 2), time)), 3 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 535 out of 1000 SELECT 3 FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT 3 FROM clear_column__fuzz_24 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT 3 FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x ASC Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x ASC Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x DESC Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT toLowCardinality(toLowCardinality(2)), 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST, x DESC Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT toLowCardinality(toLowCardinality(2)), 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST, x DESC Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT toLowCardinality(toLowCardinality(2)), 3 FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toLowCardinality(2)), 3 FROM clear_column__fuzz_21 GROUP BY pow(materialize(toNullable(3)), toNullable(toNullable(2))), equals(toNullable(toUInt256(2)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), 0) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC Error on processing query 'EXPLAIN PIPELINE SELECT toLowCardinality(toLowCardinality(2)), 3 FROM clear_column__fuzz_21 GROUP BY pow(materialize(toNullable(3)), toNullable(toNullable(2))), equals(toNullable(toUInt256(2)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), 0) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(toLowCardinality(2)), 3 FROM clear_column__fuzz_21 GROUP BY pow(materialize(toNullable(3)), toNullable(toNullable(2))), equals(toNullable(toUInt256(2)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), 0) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 27. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 546 out of 1000 SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time) ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Error on processing query 'SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time) ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time) ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 550 out of 1000 SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC, x DESC Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT toLowCardinality(2), 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST, x DESC Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 555 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT 2, dateDiff('second', toDateTime(tupleElement(time, 2))), 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'SELECT 2, dateDiff('second', toDateTime(tupleElement(time, 2))), 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, dateDiff('second', toDateTime(time.2)), 3 FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 562 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT 2, toNullable(toLowCardinality(toNullable(toUInt256(3)))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 570 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 571 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 572 out of 1000 EXPLAIN SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 576 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_m. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 577 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 578 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_m. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 579 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 EXPLAIN SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 EXPLAIN SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 582 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 584 out of 1000 EXPLAIN PIPELINE SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 587 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_m. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 588 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 589 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 590 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 592 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 593 out of 1000 EXPLAIN SYNTAX SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 594 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 596 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 597 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 598 out of 1000 EXPLAIN AST SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 599 out of 1000 EXPLAIN SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 EXPLAIN QUERY TREE SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT toLowCardinality(2), toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT toLowCardinality(2), toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_26 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 SELECT 2, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'SELECT 2, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 610 out of 1000 SELECT 2, toNullable(toLowCardinality(toLowCardinality(materialize(toLowCardinality(3))), toUInt256(3))) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'SELECT 2, toNullable(toLowCardinality(toLowCardinality(materialize(toLowCardinality(3))), toUInt256(3))) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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 SELECT 2, toNullable(toLowCardinality(toLowCardinality(materialize(toLowCardinality(3))), toUInt256(3))) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 611 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_20 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT 2, toNullable(toLowCardinality(toUInt256(3))) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT 2, toNullable(toUInt256(3)) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 SELECT 2, toNullable(toUInt256(3)) FROM clear_column__fuzz_29 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Got boring AST Fuzzing step 615 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_29 WHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) GROUP BY toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'SELECT 2, toNullable(3) FROM clear_column__fuzz_29 WHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) GROUP BY toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, toNullable(3) FROM clear_column__fuzz_29 WHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0) GROUP BY toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 616 out of 1000 SELECT 2, toNullable(toUInt256(3)) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT 2, toNullable(toUInt256(3)) FROM clear_column__fuzz_0 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_18 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Got boring AST Fuzzing step 620 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_28 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT 2, toNullable(toUInt256(3)) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2, toNullable(toUInt256(3)) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2, toNullable(toUInt256(3)) FROM clear_column__fuzz_21 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 624 out of 1000 SELECT toNullable(toUInt256(2)), toNullable(toUInt256(3)) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 EXPLAIN PIPELINE SELECT toUInt256(2), toNullable(toLowCardinality(toUInt128(toUInt256(3))), toUInt256(3)) FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT toUInt256(2), toNullable(toLowCardinality(toUInt128(toUInt256(3))), toUInt256(3)) FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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 toUInt256(2), toNullable(toLowCardinality(toUInt128(toUInt256(3))), toUInt256(3)) FROM clear_column__fuzz_17 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 626 out of 1000 SELECT toNullable(toUInt256(2)), toNullable(3) FROM clear_column__fuzz_1 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT toNullable(2), 3 FROM clear_column__fuzz_18 WHERE POWER(2, toNullable(toNullable(3))) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'SELECT toNullable(2), 3 FROM clear_column__fuzz_18 WHERE POWER(2, toNullable(toNullable(3))) ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 628 out of 1000 SELECT toNullable(toUInt256(2)), toNullable(3) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT toNullable(toUInt256(2)), toNullable(3) FROM clear_column__fuzz_27 ORDER BY toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test') DESC NULLS LAST, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Got boring AST Fuzzing step 630 out of 1000 SELECT toNullable(toUInt256(2)), toNullable(3) FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 SELECT toUInt256(2), toNullable(toNullable(3)) FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 SELECT toUInt256(2), toNullable(toNullable(3)) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT toUInt256(2), toNullable(3) FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 SELECT clear_column__fuzz_21, toUInt256(2), 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT clear_column__fuzz_21, toUInt256(2), 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_21' in scope SELECT clear_column__fuzz_21, toUInt256(2), 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 635 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 SELECT 2, toNullable(3) FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 640 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 643 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 644 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 645 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 646 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT 2, 3 FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT 2 FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 653 out of 1000 SELECT 2 FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 656 out of 1000 SELECT 2 FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT 2 FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 658 out of 1000 SELECT 2 FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT 2 FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 660 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 662 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 663 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT 2 FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT 2 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 668 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 SELECT toDateTime(tupleElement(time, toUInt128(1))), toLowCardinality(2) FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT toDateTime(tupleElement(time, toUInt128(1))), toLowCardinality(2) FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toDateTime(tupleElement(time, toUInt128(1))), toLowCardinality(2) FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 672 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Got boring AST Fuzzing step 678 out of 1000 SELECT 2 FROM clear_column__fuzz_29 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 681 out of 1000 SELECT materialize(2) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 SELECT materialize(2) FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 683 out of 1000 SELECT materialize(2) FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT materialize(2) FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT 2 FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT 2 FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT 2 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 SELECT 2 FROM clear_column__fuzz_1 ORDER BY toString(57, POWER(3, materialize(2)), time) DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'SELECT 2 FROM clear_column__fuzz_1 ORDER BY toString(57, POWER(3, materialize(2)), time) DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2 FROM clear_column__fuzz_1 ORDER BY toString(57, POWER(3, materialize(2)), time) DESC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 SELECT 2 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 691 out of 1000 SELECT 2 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT 2 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 SELECT 2 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT 2 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 695 out of 1000 SELECT 2 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 696 out of 1000 SELECT 2 FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Got boring AST Fuzzing step 700 out of 1000 SELECT 2 FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT 2 FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 702 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT 2 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Got boring AST Fuzzing step 708 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT 2 FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT 2 FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT 2 FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT 2 FROM clear_column__fuzz_0 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 714 out of 1000 SELECT 2 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT 2 FROM clear_column__fuzz_20 GROUP BY toString(toNullable(toUInt256(2)), time), toLowCardinality(POW(toLowCardinality(3), 2), 2), power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT 2 FROM clear_column__fuzz_20 GROUP BY toString(toNullable(toUInt256(2)), time), toLowCardinality(POW(toLowCardinality(3), 2), 2), power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2 FROM clear_column__fuzz_20 GROUP BY toString(toNullable(toUInt256(2)), time), toLowCardinality(POW(toLowCardinality(3), 2), 2), power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 SELECT 2 FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT 2 FROM clear_column__fuzz_1 WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT 2 FROM clear_column__fuzz_1 WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2 FROM clear_column__fuzz_1 WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 718 out of 1000 SELECT 2 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 721 out of 1000 SELECT 2 FROM clear_column__fuzz_17 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT 2 FROM clear_column__fuzz_20 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 2 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 727 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 729 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 730 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 732 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 733 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 734 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 735 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 737 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 739 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('2'): 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 740 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 742 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 743 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 744 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 746 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 749 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 750 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT 2 FROM clear_column__fuzz_24 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT 2 FROM clear_column__fuzz_18 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 755 out of 1000 SELECT 2 FROM clear_column__fuzz_1 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 760 out of 1000 SELECT 2 FROM clear_column__fuzz_21 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 763 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 764 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 765 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 768 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 770 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 771 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 774 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 778 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 779 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 780 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 782 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 783 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 784 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 786 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 787 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 788 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 789 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 790 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 792 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 794 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 795 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 796 out of 1000 EXPLAIN PIPELINE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 EXPLAIN SYNTAX SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 800 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 801 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 802 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 804 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 805 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 806 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 807 out of 1000 EXPLAIN SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 808 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 810 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 811 out of 1000 EXPLAIN AST SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 812 out of 1000 EXPLAIN QUERY TREE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 EXPLAIN ESTIMATE SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 815 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Got boring AST Fuzzing step 817 out of 1000 SELECT 2 FROM clear_column__fuzz_28 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT 2 FROM clear_column__fuzz_16 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Got boring AST Fuzzing step 820 out of 1000 SELECT 2 FROM clear_column__fuzz_27 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT 2 FROM clear_column__fuzz_26 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT 2 FROM clear_column__fuzz_29 GROUP BY toLowCardinality(toUInt256(3)), toNullable(toLowCardinality(materialize(3))), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT 2 FROM clear_column__fuzz_18 GROUP BY toUInt256(3), toLowCardinality(materialize(3)), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 SELECT 2 FROM clear_column__fuzz_17 GROUP BY toUInt256(3), toLowCardinality(3), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT 2 FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 2 FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 826 out of 1000 SELECT 2 FROM clear_column__fuzz_29 GROUP BY toUInt256(3), 3, toLowCardinality(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 2 FROM clear_column__fuzz_29 GROUP BY toUInt256(3), 3, toLowCardinality(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM clear_column__fuzz_29 GROUP BY toUInt256(3), 3, toLowCardinality(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 827 out of 1000 SELECT 2 FROM clear_column__fuzz_29 GROUP BY 3, toLowCardinality(3), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 2 FROM clear_column__fuzz_29 GROUP BY 3, toLowCardinality(3), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM clear_column__fuzz_29 GROUP BY 3, toLowCardinality(3), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 828 out of 1000 SELECT 2 FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toLowCardinality(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 2 FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toLowCardinality(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toLowCardinality(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 829 out of 1000 SELECT toNullable(2) FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT toNullable(2) FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toNullable(2) FROM clear_column__fuzz_17 GROUP BY toUInt256(3), 3, toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 830 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_28 GROUP BY 3, toLowCardinality(3), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_28 GROUP BY 3, toLowCardinality(3), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_28 GROUP BY 3, toLowCardinality(3), toLowCardinality(toUInt128(3)) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 831 out of 1000 SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_29 GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT toLowCardinality(toUInt128(toUInt128(2))) FROM clear_column__fuzz_16 GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_18 GROUP BY 3, toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_18 GROUP BY 3, toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_18 GROUP BY 3, toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 834 out of 1000 SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_20 WHERE materialize(toNullable(3)) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_20 WHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_20 WHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_20 WHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 836 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_16 WHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_16 WHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_16 WHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 837 out of 1000 SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_17 WHERE materialize(toNullable(3)) GROUP BY 3, toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_17 WHERE materialize(toNullable(3)) GROUP BY 3, toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_17 WHERE materialize(toNullable(3)) GROUP BY 3, toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 838 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_28 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT 2 FROM clear_column__fuzz_17 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(materialize(3))), (toUInt128(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), POWER(POW(3, 2), 2), toUInt128(0)), toString(time)), 3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT 2 FROM clear_column__fuzz_17 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(materialize(3))), (toUInt128(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), POWER(POW(3, 2), 2), toUInt128(0)), toString(time)), 3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2 FROM clear_column__fuzz_17 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(materialize(3))), (toUInt128(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), POWER(POW(3, 2), 2), toUInt128(0)), toString(time)), 3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 841 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_26 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_18 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_18 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Got boring AST Fuzzing step 846 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_18 PREWHERE materialize(toNullable(3)) WHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Got boring AST Fuzzing step 847 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_24 PREWHERE materialize(toNullable(3)) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(toNullable(3)) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(toNullable(3)) GROUP BY toUInt256(3), 3, toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 850 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(toNullable(3)) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(3) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(toNullable(toUInt128(3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toUInt128(toNullable(toUInt128(3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toUInt128(toNullable(toUInt128(3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(toUInt128(2)) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toUInt128(toNullable(toUInt128(3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toUInt128(toNullable(toUInt128(3))) ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(toUInt128(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN PIPELINE compact = true SELECT 2 FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(toLowCardinality(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 2 FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(toLowCardinality(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 857 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(toUInt128(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, toNullable(toUInt128(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, toNullable(toUInt128(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, toNullable(toUInt128(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 859 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_18 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) GROUP BY 3, 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) GROUP BY 3, 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) WHERE toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) GROUP BY 3, 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 862 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_28 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 864 out of 1000 EXPLAIN AST graph = true SELECT toLowCardinality(2) FROM clear_column__fuzz_18 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'EXPLAIN AST graph = true SELECT toLowCardinality(2) FROM clear_column__fuzz_18 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 865 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_28 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 868 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 869 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) WITH TOTALS ORDER BY '01473_query_thread_log_table_event_start_time_microseconds_test' ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) WITH TOTALS ORDER BY '01473_query_thread_log_table_event_start_time_microseconds_test' ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 870 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 874 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 875 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 876 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 877 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 878 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 EXPLAIN SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 EXPLAIN SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 881 out of 1000 EXPLAIN SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 882 out of 1000 EXPLAIN SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 883 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 887 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 889 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 890 out of 1000 EXPLAIN SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(POW(2), 3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(POW(2), 3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(POW(2), 3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 893 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 894 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 895 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 896 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 897 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 899 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 900 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 901 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 902 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 903 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 904 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 906 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 907 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(toNullable(toUInt128(3))), 2), 2), 3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(toNullable(toUInt128(3))), 2), 2), 3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(POWER(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(toNullable(toUInt128(3))), 2), 2), 3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 908 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 909 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 911 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 913 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 914 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 916 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 917 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 919 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 921 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 922 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 924 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 925 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 926 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 927 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 928 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 930 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 932 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 934 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 936 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 937 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 939 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toLowCardinality'): toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WI. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 940 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 941 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 942 out of 1000 EXPLAIN AST SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt256(3)), toLowCardinality(3), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 943 out of 1000 SELECT toLowCardinality(2) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(toLowCardinality(3)), toNullable(toNullable(3)) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 SELECT materialize(toUInt128(3)), toLowCardinality(2) FROM clear_column__fuzz_18 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT materialize(toUInt128(3)), toLowCardinality(2) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT toUInt128(3), toLowCardinality(2) FROM clear_column__fuzz_0 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 952 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Got boring AST Fuzzing step 954 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_17 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 956 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 958 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_17 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_17 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_17 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 959 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) WHERE toString(toUInt128(2, 57), POWER(2, 3, 2), time) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) WHERE toString(toUInt128(2, 57), POWER(2, 3, 2), time) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': 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 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) WHERE toString(toUInt128(2, 57), POWER(2, 3, 2), time) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 961 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 962 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), 3, 3 WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 13. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 14. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 963 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_28 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH ROLLUP WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(materialize(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(materialize(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(materialize(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 966 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_29 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Got boring AST Fuzzing step 969 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 EXPLAIN AST optimize = true SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'EXPLAIN AST optimize = true SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 971 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 972 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(`Null`, 3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(`Null`, 3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'Null' in scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(`Null`, 3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 973 out of 1000 SELECT 3, toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = 0, toLowCardinality(2)) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(materialize(3)), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = 0, toLowCardinality(2)) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(materialize(3)), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(1)))), toDateTime(time.2)) = 0, toLowCardinality(2)) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(materialize(3)), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 974 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 975 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY GROUPING SETS ( (toUInt256(3)), (toLowCardinality(3)), (toNullable(toLowCardinality(toNullable(3)), 3))) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY GROUPING SETS ((toUInt256(3)), (toLowCardinality(3)), (toNullable(toLowCardinality(toNullable(3)), 3))) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 976 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 GROUP BY toUInt256(materialize(toUInt128(3))), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 GROUP BY toUInt256(materialize(toUInt128(3))), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 GROUP BY toUInt256(materialize(toUInt128(3))), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 977 out of 1000 SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(tupleElement(2), 3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(tupleElement(2), 3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(2) FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(tupleElement(2), 3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 978 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT 2 FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC Error on processing query 'SELECT 2 FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 1]. In scope SELECT 2 FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY 3, toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 980 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_27 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Got boring AST Fuzzing step 983 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Error on processing query 'SELECT 3, 2 FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, 2 FROM clear_column__fuzz_24 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 984 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_16 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), 3 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC Error on processing query 'SELECT 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), 3 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), 3 ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Got boring AST Fuzzing step 989 out of 1000 SELECT 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) WITH TOTALS ORDER BY toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57) ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST Error on processing query 'SELECT 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) WITH TOTALS ORDER BY toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57) ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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 3, 2 FROM clear_column__fuzz_26 PREWHERE materialize(3) WITH TOTALS ORDER BY toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57) ASC, toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 990 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_26 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 992 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_24 PREWHERE materialize(materialize(3)) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(current_database, 3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_24 PREWHERE materialize(materialize(3)) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(current_database, 3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'current_database' in scope SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_24 PREWHERE materialize(materialize(3)) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(current_database, 3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 993 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_26 PREWHERE materialize(toNullable(3)) WHERE POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_26 PREWHERE materialize(toNullable(3)) WHERE POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) 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 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_26 PREWHERE materialize(toNullable(3)) WHERE POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 994 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_18 PREWHERE materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(toUInt128(57), time)), 3) GROUP BY toUInt256(toUInt128(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_18 PREWHERE materialize(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(toUInt128(57), time)), 3) GROUP BY toUInt256(toUInt128(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_18 PREWHERE materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(toUInt128(57), time)), 3) GROUP BY toUInt256(toUInt128(3)), 3, toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 995 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_20 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt256(toUInt128(3)), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_21 PREWHERE materialize(3) GROUP BY toUInt128(3), toLowCardinality(3), toNullable(3) WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt128(toUInt128(3)), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt128(toUInt128(3)), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, toLowCardinality(toUInt256(2)) FROM clear_column__fuzz_1 PREWHERE materialize(3) GROUP BY toUInt128(toUInt128(3)), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 999 out of 1000 SELECT 3, toLowCardinality(toUInt256(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 2)) FROM clear_column__fuzz_0 WHERE materialize(3) GROUP BY toUInt128(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST Error on processing query 'SELECT 3, toLowCardinality(toUInt256(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 2)) FROM clear_column__fuzz_0 WHERE materialize(3) GROUP BY toUInt128(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toLowCardinality(toUInt256(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 2)) FROM clear_column__fuzz_0 WHERE materialize(3) GROUP BY toUInt128(3), toLowCardinality(3), 3 WITH TOTALS ORDER BY toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 2 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 3 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 4 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 5 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 6 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 7 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 8 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 9 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 10 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 11 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 12 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 13 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 14 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 15 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 16 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 17 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 18 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 19 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 21 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 22 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 23 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 24 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 25 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 26 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 27 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775808': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 28 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 29 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 31 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 32 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 33 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 34 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 35 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 36 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 37 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 38 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 39 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 40 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 41 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 42 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 43 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 44 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 46 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 47 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 48 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 49 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 50 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 51 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 52 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 53 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 55 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 56 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 57 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 58 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 59 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 60 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 61 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 62 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 63 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 64 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 65 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 66 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 67 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65537) Got boring AST Fuzzing step 68 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 70 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 71 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 72 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 73 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 74 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 75 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 76 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 77 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 78 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 79 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 80 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 81 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 82 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 83 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 84 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 85 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 86 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 87 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '7') Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '7') Got boring AST Fuzzing step 89 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '7') Got boring AST Fuzzing step 90 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '7') Got boring AST Fuzzing step 91 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '7') Got boring AST Fuzzing step 92 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '7') Got boring AST Fuzzing step 93 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '7') Got boring AST Fuzzing step 94 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 96 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 97 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 98 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 99 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 100 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 101 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 102 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 103 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 104 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 105 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 106 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 107 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 108 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 109 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 110 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 111 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '2.57') Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '2.57')': Received from localhost:9000. DB::Exception: Cannot convert string '2.57' to type UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&&) @ 0x00000000095851e6 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x00000000182172b9 5. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018213469 6. ./src/Core/Field.h:459: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x00000000182175ee 7. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 9. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 10. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 11. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 112 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 113 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 114 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 115 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '10485.75') Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '10485.75')': Received from localhost:9000. DB::Exception: Cannot convert string '10485.75' to type UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&, String&&) @ 0x00000000095851e6 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::(anonymous namespace)::convertFieldToTypeImpl(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x00000000182172b9 5. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToType(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018213469 6. ./src/Core/Field.h:459: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x00000000182175ee 7. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 9. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 10. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 11. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 116 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 117 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 118 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 119 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 120 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 121 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 122 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 123 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 124 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 125 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 126 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 127 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 128 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION '0') Got boring AST Fuzzing step 129 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 131 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 132 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 133 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 134 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 135 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 136 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 137 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 138 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 139 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 140 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 141 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 142 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 143 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 144 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 145 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 146 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 147 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 148 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 149 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 150 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 151 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 152 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 153 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 154 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 155 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 156 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 157 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 158 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 159 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 160 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 161 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483647': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 162 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 163 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 165 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 166 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 167 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 168 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 169 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 170 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 171 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2)': Received from localhost:9000. DB::Exception: Cannot convert value '-2': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 172 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 173 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 174 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 175 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 176 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 177 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 178 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 179 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 180 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 181 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775808': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 182 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 183 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 184 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 185 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 186 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 188 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 189 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 190 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 191 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 192 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 193 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 194 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 195 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 196 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 197 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 198 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 199 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 200 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 201 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 202 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483648': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 203 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 204 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 205 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 206 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 207 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 208 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 210 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 211 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 212 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 213 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 214 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 215 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 216 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 217 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 218 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 219 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 220 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 221 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 222 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 223 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 224 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 225 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 226 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 227 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 228 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 229 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 230 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 231 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 232 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 233 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 234 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1)': Received from localhost:9000. DB::Exception: Cannot convert value '-1': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 235 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 236 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 237 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 238 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 239 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 240 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 241 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 242 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 243 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 244 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 245 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 246 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 247 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 248 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 249 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 250 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 251 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 252 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 253 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 254 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 255 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 256 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 257 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 258 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 259 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 260 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 261 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 262 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 263 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 264 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 265 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 266 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 267 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 269 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 270 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 271 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 272 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 273 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 274 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 275 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 276 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 277 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 278 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 279 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 280 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 281 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 282 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 283 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 285 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 286 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 287 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 288 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 289 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 290 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 291 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 292 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 293 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 294 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 295 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 296 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 297 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 298 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 299 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 300 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 301 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 302 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 303 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 304 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 305 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 306 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 307 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 308 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 309 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 310 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 311 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 312 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 313 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 314 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 315 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 316 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 317 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 318 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 319 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 320 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 321 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 322 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 323 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 324 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 325 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 326 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483647': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 327 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 328 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 329 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 330 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 331 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 332 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 333 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 334 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0) Got boring AST Fuzzing step 335 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 337 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 339 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 340 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 341 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 342 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 343 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 344 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 345 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 346 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 347 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 348 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 349 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 350 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 351 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 352 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 353 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 354 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 355 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 356 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 358 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 359 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 360 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 361 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 362 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 363 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 364 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 365 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 366 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 367 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 368 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 369 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 370 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 371 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 372 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 374 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 375 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 377 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 378 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 379 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 380 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1)': Received from localhost:9000. DB::Exception: Cannot convert value '-1': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 381 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 382 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 383 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 384 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 385 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483647)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483647': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 386 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 387 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 388 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 389 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 390 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 391 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 392 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 393 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 394 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 395 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 396 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 397 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 398 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 399 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 401 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 402 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 403 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 404 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 405 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 406 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 407 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 408 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 409 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 410 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 411 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 412 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 413 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 414 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 415 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 416 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 417 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 418 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 419 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 420 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 421 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 422 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 423 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 424 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 425 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 426 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 427 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 428 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 429 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 430 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 431 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 432 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 433 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 434 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 435 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 436 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 437 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 438 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 439 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1023) Got boring AST Fuzzing step 440 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 442 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 443 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 445 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 446 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 447 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 448 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 449 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 450 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 451 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 452 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 453 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 454 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 455 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 456 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 457 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 459 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 460 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 461 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 463 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 464 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 465 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 466 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 467 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 468 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 469 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 470 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 471 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 474 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 475 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 476 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 477 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 478 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 479 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 480 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 481 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 482 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 483 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 484 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 486 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 487 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 488 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 489 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 490 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 491 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 492 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 493 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 494 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 495 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 496 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 497 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 498 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 499 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 500 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 503 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 504 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 505 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 506 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -2147483648)': Received from localhost:9000. DB::Exception: Cannot convert value '-2147483648': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 507 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 508 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 509 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 510 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 511 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 512 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 513 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 514 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 515 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 516 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 517 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 257) Got boring AST Fuzzing step 518 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 520 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 521 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 522 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 523 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 524 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 525 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 526 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 527 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 528 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 529 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 530 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 531 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 532 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 533 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 534 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 535 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 536 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 537 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 538 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 539 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 540 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 541 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 542 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 543 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 544 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775806': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 545 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 546 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 547 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 548 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 549 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 550 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 551 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 552 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 553 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 554 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 555 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 556 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 557 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 558 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 559 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 560 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 561 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 562 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 563 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 564 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775807)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775807': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 565 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 566 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 567 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 568 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 569 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 570 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 571 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 572 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 573 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 574 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 575 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 576 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 577 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 578 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 579 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 580 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 581 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 582 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 583 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 584 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 585 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 586 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 587 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 588 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 589 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 590 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 591 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 592 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 593 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 594 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 595 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 596 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 597 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 598 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 599 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 600 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048575) Got boring AST Fuzzing step 601 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 603 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 604 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 605 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 606 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 607 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 608 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 609 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 610 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 611 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 612 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 613 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 614 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 615 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 616 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 617 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 618 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 619 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 620 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 622 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 623 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 624 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775806': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 625 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 626 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 627 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483648) Got boring AST Fuzzing step 628 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 630 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 631 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 632 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 633 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 634 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 635 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 636 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -9223372036854775808)': Received from localhost:9000. DB::Exception: Cannot convert value '-9223372036854775808': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 637 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 638 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 639 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 640 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 641 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 642 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 643 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 644 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 645 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 646 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 647 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 648 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 649 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 650 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 651 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 652 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 653 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 654 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 655 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 656 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 657 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 658 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 659 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 660 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 661 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 662 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 663 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 664 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 665 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 666 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 667 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 668 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 669 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 670 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 671 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 672 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 673 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 674 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 675 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 676 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 677 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 678 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 679 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Got boring AST Fuzzing step 680 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 682 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 683 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 684 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 686 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 687 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 688 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 689 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 690 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 691 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65536) Got boring AST Fuzzing step 692 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 694 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 695 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 696 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 697 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 698 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 699 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 700 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 701 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 702 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 703 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 704 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 705 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 706 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 707 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 708 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 709 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 710 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 711 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 712 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 713 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 714 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 715 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2) Got boring AST Fuzzing step 716 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 718 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 719 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 720 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 721 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 722 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 723 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 724 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 725 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 726 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 65535) Got boring AST Fuzzing step 727 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 729 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 731 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 732 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 733 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 734 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 735 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 736 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 737 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 738 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 739 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 740 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 741 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 742 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 743 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 744 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 745 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 746 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 9223372036854775806)': Received from localhost:9000. DB::Exception: Cannot convert value '9223372036854775806': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 747 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 748 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 749 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 750 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 751 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 752 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 753 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 754 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 755 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 756 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 757 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048577) Got boring AST Fuzzing step 758 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 760 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 761 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 762 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 763 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 764 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 3) Got boring AST Fuzzing step 765 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 767 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 768 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 769 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 770 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 771 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 772 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 773 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 775 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 776 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 777 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 778 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 779 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 780 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 781 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 782 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 783 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 784 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1025) Got boring AST Fuzzing step 785 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 788 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 789 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 790 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 791 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 792 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 793 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 794 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 795 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 7) Got boring AST Fuzzing step 796 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 798 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 799 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 800 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 801 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 802 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 803 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 804 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 805 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 806 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 807 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 808 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 809 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 810 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 811 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 812 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 813 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 814 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 815 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION -1)': Received from localhost:9000. DB::Exception: Cannot convert value '-1': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 816 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 817 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 818 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 819 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 820 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 821 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 822 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 823 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 824 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 825 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 826 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 827 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 828 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 829 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 830 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 831 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 832 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 833 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 835 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 837 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 838 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 839 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 255) Got boring AST Fuzzing step 840 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 842 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 843 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 844 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 845 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 846 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 847 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 848 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 849 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 256) Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 852 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 853 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 854 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 855 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 856 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 857 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 858 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 859 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 860 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 861 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 862 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 863 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 864 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 10) Got boring AST Fuzzing step 865 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 867 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 868 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 869 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 870 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 871 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483647) Got boring AST Fuzzing step 872 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 874 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 875 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 876 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 877 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 878 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 879 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 880 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 881 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 882 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 883 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 884 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1024) Got boring AST Fuzzing step 885 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 887 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 888 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 889 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 890 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 891 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 892 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 893 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 894 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 895 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 896 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0.9999) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 0.9999)': Received from localhost:9000. DB::Exception: Cannot convert value '0.9999': it cannot be represented as UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217857 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 897 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 898 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 899 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 900 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 901 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 902 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 903 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 904 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 905 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 906 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 907 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 908 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 909 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 910 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 911 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 912 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 913 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 914 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 915 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 916 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 917 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 918 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 919 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 920 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 921 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 922 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 923 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 924 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 925 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 926 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 927 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 928 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1) Got boring AST Fuzzing step 929 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 931 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 932 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 933 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 934 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 935 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 936 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 937 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 938 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 939 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 940 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 941 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 942 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 943 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 944 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 945 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 1048576) Got boring AST Fuzzing step 946 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 948 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 949 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 950 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 951 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 952 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 953 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 954 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 955 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 956 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 957 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 958 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 959 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 960 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 961 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 962 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 963 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 964 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 965 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 966 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 967 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 968 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 969 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 970 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 971 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 972 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 973 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL) Error on processing query 'ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION NULL)': Received from localhost:9000. DB::Exception: Cannot convert NULL to UInt32. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Interpreters/convertFieldToType.cpp:0: DB::convertFieldToTypeOrThrow(DB::Field const&, DB::IDataType const&, DB::IDataType const*) @ 0x0000000018217763 5. ./build_docker/./src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::getPartitionIDFromQuery(std::shared_ptr const&, std::shared_ptr, DB::DataPartsLock*) const @ 0x0000000019a3a175 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::MergeTreeData::checkAlterIsPossible(DB::AlterCommands const&, std::shared_ptr) const @ 0x0000000019a323df 7. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:0: DB::InterpreterAlterQuery::executeToTable(DB::ASTAlterQuery const&) @ 0x0000000017c6d4db 8. ./build_docker/./src/Interpreters/InterpreterAlterQuery.cpp:74: DB::InterpreterAlterQuery::execute() @ 0x0000000017c6ad43 9. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 12. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 13. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 15. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 16. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 17. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 18. __tsan_thread_start_func @ 0x000000000758ef2f 19. ? @ 0x00007f341fe93ac3 20. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 975 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 976 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 977 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 978 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 979 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 980 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 981 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 982 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 983 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 984 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 985 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 986 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 987 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 2147483646) Got boring AST Fuzzing step 988 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 990 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 991 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 992 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 993 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 994 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 995 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 996 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 997 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 998 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 999 out of 1000 ALTER TABLE clear_column (CLEAR COLUMN y IN PARTITION 100) Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT * FROM clear_column ORDER BY x ASC Got boring AST Fuzzing step 2 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Got boring AST Fuzzing step 5 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Got boring AST Fuzzing step 6 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY x ASC Got boring AST Fuzzing step 8 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY x DESC Got boring AST Fuzzing step 12 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY x DESC Got boring AST Fuzzing step 13 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT * FROM clear_column__fuzz_26 WHERE power(3, 2) ORDER BY x DESC NULLS FIRST Error on processing query 'SELECT * FROM clear_column__fuzz_26 WHERE power(3, 2) ORDER BY x DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 16 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 18 out of 1000 SELECT * FROM clear_column__fuzz_16 GROUP BY materialize(toNullable(0)), toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time) ORDER BY x ASC NULLS LAST Error on processing query 'SELECT * FROM clear_column__fuzz_16 GROUP BY materialize(toNullable(0)), toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time) ORDER BY x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT * FROM clear_column__fuzz_16 GROUP BY materialize(toNullable(0)), toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time) ORDER BY x ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 19 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT current_database, * FROM clear_column__fuzz_20 ORDER BY x ASC Error on processing query 'SELECT current_database, * FROM clear_column__fuzz_20 ORDER BY x ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'current_database' in scope SELECT current_database, * FROM clear_column__fuzz_20 ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 21 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 23 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 24 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 27 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 28 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 31 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 35 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 39 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT toFixedString('ok', toUInt128(2)), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT toFixedString('ok', toUInt128(2)), * FROM clear_column__fuzz_17 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT toFixedString('ok', toUInt128(2)), * FROM clear_column__fuzz_18 WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), toUInt256(57), POWER(toNullable(2), toLowCardinality(3), 2), time)) ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT toFixedString('ok', toUInt128(2)), * FROM clear_column__fuzz_18 WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), toUInt256(57), POWER(toNullable(2), toLowCardinality(3), 2), time)) ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toFixedString('ok', toUInt128(2)), * FROM clear_column__fuzz_18 WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), toUInt256(57), POWER(toNullable(2), toLowCardinality(3), 2), time)) ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 48 out of 1000 SELECT toFixedString('ok', toUInt128(toUInt256(2))), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 SELECT toFixedString('ok', toUInt128(toUInt256(2))), * FROM clear_column__fuzz_16 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 SELECT toFixedString('ok', toUInt128(toUInt256(2))), * FROM clear_column__fuzz_17 GROUP BY POWER(POW(3, materialize(2)), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0 ORDER BY x ASC Error on processing query 'SELECT toFixedString('ok', toUInt128(toUInt256(2))), * FROM clear_column__fuzz_17 GROUP BY POWER(POW(3, materialize(2)), 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0 ORDER BY x ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toFixedString('ok', toUInt128(toUInt256(2))), * FROM clear_column__fuzz_17 GROUP BY POWER(POW(3, materialize(2)), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(time.2)) = 0 ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 51 out of 1000 SELECT pow(3, toLowCardinality(2)), toFixedString('ok', toUInt128(toUInt256(2))), * FROM clear_column__fuzz_20 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT pow(3, toLowCardinality(2)), toFixedString('ok', toUInt128(toUInt256(2))), * FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, 2), toFixedString(materialize('ok'), toUInt128(toUInt256(2))), * FROM clear_column__fuzz_17 ORDER BY x DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, 2), toFixedString(materialize('ok'), toUInt128(toUInt256(2))), * FROM clear_column__fuzz_17 ORDER BY x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, 2), toFixedString(materialize('ok'), toUInt128(toUInt256(2))), * FROM clear_column__fuzz_17 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 54 out of 1000 SELECT pow(3, toLowCardinality(2)), toFixedString('ok', toUInt256(2)), * FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), 'ok', toUInt256(2), * FROM clear_column__fuzz_26 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_27 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_20 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(pow(power(3, 3, 2), 3, 2), 2))), toLowCardinality('ok', 2), toUInt256(2), * FROM clear_column__fuzz_20 ORDER BY x DESC NULLS FIRST Error on processing query 'SELECT pow(toNullable(3), toLowCardinality(materialize(pow(power(3, 3, 2), 3, 2), 2))), toLowCardinality('ok', 2), toUInt256(2), * FROM clear_column__fuzz_20 ORDER BY x DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(toNullable(3), toLowCardinality(materialize(pow(power(3, 3, 2), 3, 2), 2))), toLowCardinality('ok', 2), toUInt256(2), * FROM clear_column__fuzz_20 ORDER BY x DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 59 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 EXPLAIN PIPELINE compact = true SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), 2, * FROM clear_column__fuzz_26 ORDER BY x DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), 2, * FROM clear_column__fuzz_26 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 62 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_27 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT pow(toNullable(3), toLowCardinality(2)), toLowCardinality('ok', 2), toUInt256(2), * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Error on processing query 'SELECT pow(toNullable(3), toLowCardinality(2)), toLowCardinality('ok', 2), toUInt256(2), * FROM clear_column__fuzz_27 ORDER BY x 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 SELECT pow(toNullable(3), toLowCardinality(2)), toLowCardinality('ok', 2), toUInt256(2), * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 65 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 67 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(2), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 68 out of 1000 SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(toFixedString('ok', toUInt128(2), 2), 2), * FROM clear_column__fuzz_0 ORDER BY x DESC Error on processing query 'SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(toFixedString('ok', toUInt128(2), 2), 2), * FROM clear_column__fuzz_0 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT pow(toNullable(3), toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), toUInt256(toFixedString('ok', toUInt128(2), 2), 2), * FROM clear_column__fuzz_0 ORDER BY x DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 69 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), toLowCardinality(toFixedString('ok', 2)), 2, * FROM clear_column__fuzz_28 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), toFixedString('ok', 2), 2, * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), 'ok', 2, 2, * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), 'ok', 2, 2, * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT pow(3, toLowCardinality(materialize(2))), 'ok', 2, 2, * FROM clear_column__fuzz_29 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT pow(3, toLowCardinality(2)), 'ok', 2, 2, * FROM clear_column__fuzz_0 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT pow(3, toLowCardinality(2)), 'ok', 2, 2, * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT pow(3, toLowCardinality(2)), 'ok', 2, 2, * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 77 out of 1000 SELECT pow(3, toLowCardinality(2)), 'ok', 2, 2, * FROM clear_column__fuzz_1 GROUP BY 'ok', sleep(toLowCardinality(2)), toUInt128(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), POW(materialize(toLowCardinality(toUInt128(3))), 2), 2), toNullable(3), 2), time)) ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT pow(3, toLowCardinality(2)), 'ok', 2, 2, * FROM clear_column__fuzz_1 GROUP BY 'ok', sleep(toLowCardinality(2)), toUInt128(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), POW(materialize(toLowCardinality(toUInt128(3))), 2), 2), toNullable(3), 2), time)) ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(3, toLowCardinality(2)), 'ok', 2, 2, * FROM clear_column__fuzz_1 GROUP BY 'ok', sleep(toLowCardinality(2)), toUInt128(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', 2, toString(power(POWER(POW(3, 2), POW(materialize(toLowCardinality(toUInt128(3))), 2), 2), toNullable(3), 2), time)) ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 78 out of 1000 SELECT pow(3, toLowCardinality(2)), toLowCardinality('ok'), 2, 2, * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT pow(3, toLowCardinality(2)), toLowCardinality('ok'), 2, 2, * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT pow(materialize(toUInt256(2)), 3, toLowCardinality(2)), toLowCardinality('ok'), 2, 2, * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Error on processing query 'SELECT pow(materialize(toUInt256(2)), 3, toLowCardinality(2)), toLowCardinality('ok'), 2, 2, * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(materialize(toUInt256(2)), 3, toLowCardinality(2)), toLowCardinality('ok'), 2, 2, * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 81 out of 1000 SELECT toLowCardinality(toUInt128(57)), pow(3, toLowCardinality(2)), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT toLowCardinality(toUInt128(57)), pow(3, toLowCardinality(2)), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT toLowCardinality(toUInt128(57)), pow(3, toLowCardinality(2)), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT toLowCardinality(toUInt128(57)), pow(3, 2), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_17 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toUInt128(57)), pow(3, 2), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toUInt128(57)), pow(3, 2), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 87 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toUInt128(57)), pow(3, 2), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 88 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toUInt128(57)), pow(3, 2), toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 89 out of 1000 SELECT toLowCardinality(toUInt128(57)), toLowCardinality(toLowCardinality('ok')), 2, toUInt128(2), * FROM clear_column__fuzz_21 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toUInt128(57)), toLowCardinality(toLowCardinality('ok')), 2, toUInt128(2), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 EXPLAIN AST SELECT toLowCardinality(toUInt128(57)), toLowCardinality(toLowCardinality('ok')), 2, toUInt128(2), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT toUInt128(57), toLowCardinality(toLowCardinality('ok')), 2, toUInt128(2), * FROM clear_column__fuzz_27 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT 57, toLowCardinality(toLowCardinality('ok')), 2, toUInt128(2), * FROM clear_column__fuzz_0 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT 57, toLowCardinality('ok'), 2, toUInt128(2), * FROM clear_column__fuzz_26 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT 57, 'ok', 2, toUInt128(2), * FROM clear_column__fuzz_26 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_18 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_1 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_0 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY MergeTree, POWER(toLowCardinality(2), 3), toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 0)) ORDER BY x DESC NULLS LAST Error on processing query 'SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY MergeTree, POWER(toLowCardinality(2), 3), toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 0)) ORDER BY x DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'MergeTree' in scope SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_0 PREWHERE toNullable(0) WHERE toNullable(0) GROUP BY MergeTree, POWER(toLowCardinality(2), 3), toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 0)) ORDER BY x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 100 out of 1000 SELECT toNullable(57), 'ok', 2, 2, * FROM clear_column__fuzz_0 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 SELECT toNullable(57), 'ok', 2, 2, * FROM clear_column__fuzz_18 PREWHERE toNullable(0) ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT toNullable(57), 'ok', 2, 2, * FROM clear_column__fuzz_29 PREWHERE toNullable(0) ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT toNullable(57), 'ok', 2, 2, * FROM clear_column__fuzz_27 PREWHERE toNullable(0) ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT toNullable(57), 'ok', 2, 2, * FROM clear_column__fuzz_1 PREWHERE toNullable(0) ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT toNullable(57), 'ok', 2, 2, * FROM clear_column__fuzz_29 PREWHERE toNullable(0) ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_29 PREWHERE toNullable(0) ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_29 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT 57, 'ok', 2, toUInt256(2), * FROM clear_column__fuzz_17 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_20 PREWHERE toNullable(0) ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 112 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_24 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_24 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 114 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT 57, 'ok', 2, 2, * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS LAST Got boring AST Fuzzing step 116 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(toNullable(2))), * FROM clear_column__fuzz_0 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, toNullable(2)), * FROM clear_column__fuzz_18 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_29 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x DESC Got boring AST Fuzzing step 122 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 125 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_29 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_29 ORDER BY x ASC Got boring AST Fuzzing step 127 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_1 PREWHERE if(dateDiff(pow(materialize(3), toLowCardinality(toNullable(2))), 'second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) GROUP BY toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(toLowCardinality(toUInt128(2)).2)) = toNullable(0), time) ORDER BY x ASC Error on processing query 'SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_1 PREWHERE if(dateDiff(pow(materialize(3), toLowCardinality(toNullable(2))), 'second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) GROUP BY toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(toLowCardinality(toUInt128(2)).2)) = toNullable(0), time) ORDER BY x ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_1 PREWHERE if(dateDiff(pow(materialize(3), toLowCardinality(toNullable(2))), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) GROUP BY toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(toLowCardinality(toUInt128(2)).2)) = toNullable(0), time) ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 129 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 EXPLAIN PIPELINE header = true SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 132 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x DESC Got boring AST Fuzzing step 133 out of 1000 SELECT 57, 'ok', toUInt256(2), 2, POW(3, 2), * FROM clear_column__fuzz_16 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT 57, 'ok', toUInt256(2), 2, POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT 57, 'ok', toUInt256(2), 2, POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT 57, materialize('ok'), toUInt256(2), 2, POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT 57, materialize('ok'), toUInt256(2), 2, POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 138 out of 1000 SELECT 57, 'ok', toUInt256(2), 2, POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT 57, 'ok', 2, materialize(toUInt256(2)), POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 SELECT 57, 'ok', 2, materialize(toUInt256(2)), POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 SELECT 57, 'ok', 2, materialize(toUInt256(2)), POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 143 out of 1000 SELECT 57, 'ok', 2, materialize(toUInt256(2)), POW(3, 2), * FROM clear_column__fuzz_29 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, 2), * FROM clear_column__fuzz_24 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, 2), * FROM clear_column__fuzz_20 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 148 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, 2), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Got boring AST Fuzzing step 149 out of 1000 SELECT 57, 'ok', toUInt128(2), materialize(2), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_16 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 EXPLAIN SYNTAX SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 EXPLAIN AST SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 EXPLAIN AST SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 159 out of 1000 EXPLAIN AST SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 160 out of 1000 EXPLAIN AST SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x ASC Got boring AST Fuzzing step 161 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_29 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT 57, 'ok', 2, toLowCardinality(2), POW(3, 2), * FROM clear_column__fuzz_27 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT 57, materialize('ok'), 2, toLowCardinality(2), POW(3, materialize(2)), * FROM clear_column__fuzz_27 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 SELECT toUInt128(57), materialize('ok'), 2, toLowCardinality(2), POW(3, materialize(2)), * FROM clear_column__fuzz_21 PREWHERE toNullable('01473_query_log_table_event_start_time_microseconds_test') ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT toUInt128(57), materialize('ok'), 2, toLowCardinality(2), POW(3, materialize(2)), * FROM clear_column__fuzz_21 PREWHERE toNullable('01473_query_log_table_event_start_time_microseconds_test') ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: Nullable(String). In query SELECT toUInt128(57), materialize('ok'), 2, toLowCardinality(2), POW(3, materialize(2)), * FROM clear_column__fuzz_21 PREWHERE toNullable('01473_query_log_table_event_start_time_microseconds_test') ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 166 out of 1000 SELECT 57, materialize('ok'), 2, toLowCardinality(2), POW(3, materialize(2)), * FROM clear_column__fuzz_27 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 167 out of 1000 SELECT 57, materialize('ok'), 2, toLowCardinality(2), POW(3, materialize(2)), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 SELECT 57, materialize(toLowCardinality('ok')), 2, 2, POW(3, materialize(2)), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT 57, materialize(toLowCardinality('ok')), 2, 2, POW(3), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT 57, materialize(toLowCardinality('ok')), 2, 2, POW(3), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 57, materialize(toLowCardinality('ok')), 2, 2, POW(3), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 170 out of 1000 SELECT 57, materialize('ok'), 2, materialize(toLowCardinality(2)), POW(3, materialize(2)), * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT 57, materialize('ok'), 2, materialize(toLowCardinality(2)), POW(3, materialize(2)), * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 172 out of 1000 SELECT 57, 'ok', 2, materialize(toLowCardinality(2)), POW(3, materialize(2)), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT 57, 'ok', 2, materialize(toLowCardinality(2)), POW(3, materialize(2)), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 174 out of 1000 SELECT 57, 'ok', 2, materialize(toLowCardinality(2)), POW(3, materialize(2)), * FROM clear_column__fuzz_21 PREWHERE materialize(power(toLowCardinality(3), 3, 2), 3) ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT 57, 'ok', 2, materialize(toLowCardinality(2)), POW(3, materialize(2)), * FROM clear_column__fuzz_21 PREWHERE materialize(power(toLowCardinality(3), 3, 2), 3) ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 57, 'ok', 2, materialize(toLowCardinality(2)), POW(3, materialize(2)), * FROM clear_column__fuzz_21 PREWHERE materialize(power(toLowCardinality(3), 3, 2), 3) ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 175 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, materialize(materialize(toNullable(2)))), * FROM clear_column__fuzz_28 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, materialize(materialize(toNullable(2)))), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, materialize(materialize(2))), * FROM clear_column__fuzz_28 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(materialize(materialize(toLowCardinality(2))))), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, materialize(materialize(toLowCardinality(2)))), * FROM clear_column__fuzz_18 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(3, materialize(materialize(POWER(3, 2), toLowCardinality(2)))), * FROM clear_column__fuzz_29 ORDER BY x ASC Error on processing query 'SELECT 57, 'ok', 2, materialize(2), POW(3, materialize(materialize(POWER(3, 2), toLowCardinality(2)))), * FROM clear_column__fuzz_29 ORDER BY x ASC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 57, 'ok', 2, materialize(2), POW(3, materialize(materialize(POWER(3, 2), toLowCardinality(2)))), * FROM clear_column__fuzz_29 ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 181 out of 1000 SELECT 57, 'ok', 2, materialize(2), POW(POW(materialize(3), 2), 3, materialize(materialize(toLowCardinality(2)))), * FROM clear_column__fuzz_18 ORDER BY x ASC Error on processing query 'SELECT 57, 'ok', 2, materialize(2), POW(POW(materialize(3), 2), 3, materialize(materialize(toLowCardinality(2)))), * FROM clear_column__fuzz_18 ORDER BY x ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 57, 'ok', 2, materialize(2), POW(POW(materialize(3), 2), 3, materialize(materialize(toLowCardinality(2)))), * FROM clear_column__fuzz_18 ORDER BY x ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 182 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(toLowCardinality(2))), * FROM clear_column__fuzz_18 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(toLowCardinality(2))), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(2)), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(2)), toString(power(POWER(POW(toUInt128(3), 2), 2), 3, toLowCardinality(2)), time), * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT 57, 'ok', 2, 2, POW(3, materialize(2)), toString(power(POWER(POW(toUInt128(3), 2), 2), 3, toLowCardinality(2)), time), * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 57, 'ok', 2, 2, POW(3, materialize(2)), toString(power(POWER(POW(toUInt128(3), 2), 2), 3, toLowCardinality(2)), time), * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 186 out of 1000 SELECT materialize(toNullable(toUInt256(57))), 'ok', 2, 2, POW(3, materialize(2)), * FROM clear_column__fuzz_28 PREWHERE if(dateDiff('second', toDateTime(tupleElement(toLowCardinality(0), time, 1)), toDateTime(tupleElement(time))) = 0, 'ok', if(dateDiff('second', toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(toNullable(2), toLowCardinality(3)), time)), toString(POW(toLowCardinality(POW(3, 2), 2)))) ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT materialize(toNullable(toUInt256(57))), 'ok', 2, 2, POW(3, materialize(2)), * FROM clear_column__fuzz_28 PREWHERE if(dateDiff('second', toDateTime(tupleElement(toLowCardinality(0), time, 1)), toDateTime(tupleElement(time))) = 0, 'ok', if(dateDiff('second', toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(toNullable(2), toLowCardinality(3)), time)), toString(POW(toLowCardinality(POW(3, 2), 2)))) ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(toNullable(toUInt256(57))), 'ok', 2, 2, POW(3, materialize(2)), * FROM clear_column__fuzz_28 PREWHERE if(dateDiff('second', toDateTime(tupleElement(toLowCardinality(0), time, 1)), toDateTime(tupleElement(time))) = 0, 'ok', if(dateDiff('second', toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(2, 57, POWER(toNullable(2), toLowCardinality(3)), time)), toString(POW(toLowCardinality(POW(3, 2), 2)))) ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 187 out of 1000 SELECT 57, 'ok', toUInt128(2), 2, POW(3, materialize(2)), * FROM clear_column__fuzz_20 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(2)), * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, materialize(2)), * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 SELECT 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 SELECT materialize(toNullable(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), '01473_metric_log_table_event_start_time_microseconds_test')), 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_26 WHERE toUInt128(3) ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT materialize(toNullable(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), '01473_metric_log_table_event_start_time_microseconds_test')), 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_26 WHERE toUInt128(3) ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(toNullable(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), '01473_metric_log_table_event_start_time_microseconds_test')), 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_26 WHERE toUInt128(3) ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 193 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', 2, 2, POW(3, 2), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 196 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_18 PREWHERE tupleElement(time, toLowCardinality(1)) ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_18 PREWHERE tupleElement(time, toLowCardinality(1)) ORDER BY x ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_18 PREWHERE tupleElement(time, toLowCardinality(1)) ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 198 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 200 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(3, 2), * FROM clear_column__fuzz_0 ORDER BY x 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 204 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), * FROM clear_column__fuzz_1 ORDER BY x ASC NULLS FIRST Got boring AST Fuzzing step 206 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), * FROM clear_column__fuzz_18 GROUP BY dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time))) = materialize(toNullable(0)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) ORDER BY x DESC NULLS LAST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), * FROM clear_column__fuzz_18 GROUP BY dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time))) = materialize(toNullable(0)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) ORDER BY x 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 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), * FROM clear_column__fuzz_18 GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = materialize(toNullable(0)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) ORDER BY x DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 207 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', 2, 2, POW(materialize(3), 2), * FROM clear_column__fuzz_20 ORDER BY x ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', 2, 2, POW(materialize(3), 2), * FROM clear_column__fuzz_20 ORDER BY x ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('materialize'): materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57),. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 210 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 'ok', toNullable(2), 2, POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_21 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(power(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(power(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x 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 materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(power(toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 216 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), POW(materialize(3), 2), * FROM clear_column__fuzz_0 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x 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 materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY x ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 219 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(toNullable(toUInt256(57)))), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(toNullable(toUInt256(57)))), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(toNullable(toUInt256(57)))), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e423cb0 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 225 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, 2), * FROM clear_column__fuzz_18 ORDER BY x DESC Got boring AST Fuzzing step 226 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, 2), * FROM clear_column__fuzz_21 ORDER BY x DESC Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, toUInt256(2)), * FROM clear_column__fuzz_26 GROUP BY materialize(toUInt128(2)), materialize(toNullable('ok', 2)) ORDER BY x DESC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, toUInt256(2)), * FROM clear_column__fuzz_26 GROUP BY materialize(toUInt128(2)), materialize(toNullable('ok', 2)) ORDER BY x DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, toUInt256(2)), * FROM clear_column__fuzz_26 GROUP BY materialize(toUInt128(2)), materialize(toNullable('ok', 2)) ORDER BY x DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 228 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), POW(3, 2), * FROM clear_column__fuzz_21 ORDER BY x ASC Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN PIPELINE compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, POW(3, 2), * FROM clear_column__fuzz_0 GROUP BY toString(57, POWER(3, 2), time), POW(3, toNullable(2)), toString(POW(POW(toLowCardinality(3), 2), 2)), materialize(2) ORDER BY x ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, POW(3, 2), * FROM clear_column__fuzz_0 GROUP BY toString(57, POWER(3, 2), time), POW(3, toNullable(2)), toString(POW(POW(toLowCardinality(3), 2), 2)), materialize(2) ORDER BY x ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 231 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(3, 2), * FROM clear_column__fuzz_26 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(toLowCardinality(3)), 2), * FROM clear_column__fuzz_17 ORDER BY x ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3), 2), * FROM clear_column__fuzz_29 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3), 2), * FROM clear_column__fuzz_29 ORDER BY x DESC NULLS FIRST Got boring AST Fuzzing step 235 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3), 2), * FROM clear_column__fuzz_29 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt256(0), 'ok', toString(toNullable(toUInt256(2)), time)) ORDER BY x DESC NULLS FIRST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3), 2), * FROM clear_column__fuzz_29 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt256(0), 'ok', toString(toNullable(toUInt256(2)), time)) ORDER BY x DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3), 2), * FROM clear_column__fuzz_29 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(toNullable(toUInt256(2)), time)) ORDER BY x DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 236 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3)), * FROM clear_column__fuzz_16 ORDER BY x DESC NULLS FIRST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3)), * FROM clear_column__fuzz_16 ORDER BY x DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(materialize(3)), * FROM clear_column__fuzz_16 ORDER BY x DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 237 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(3, 2), * FROM clear_column__fuzz_29 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(3, 2), * FROM clear_column__fuzz_21 PREWHERE POWER(2, 3) ORDER BY x DESC Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(3, 2), * FROM clear_column__fuzz_21 PREWHERE POWER(2, 3) ORDER BY x DESC': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000190d5ca9 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000195e7d5e 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) @ 0x0000000019b418e4 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&) @ 0x000000001a9922ef 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000001a991d48 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000001aa6b363 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:0: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001aa6b0b1 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001aa4d792 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001a96a4fa 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001a968ff0 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000017e07609 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000017e072b0 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 239 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(3, 2), * FROM clear_column__fuzz_29 PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) ORDER BY x DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(3, 2), * FROM clear_column__fuzz_29 PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) ORDER BY x DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(3, 2), * FROM clear_column__fuzz_29 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) ORDER BY x DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 240 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(3, 2), * FROM clear_column__fuzz_24 ORDER BY x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toUInt128(57)), POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST, x DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toUInt128(57)), POW(3, 2), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toUInt128(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(materialize(3), 2), * FROM clear_column__fuzz_20 ORDER BY dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) ASC, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(materialize(3), 2), * FROM clear_column__fuzz_20 ORDER BY dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) ASC, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), POW(materialize(3), 2), * FROM clear_column__fuzz_20 ORDER BY dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) ASC, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 247 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toUInt128(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(materialize(3)), 2), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(materialize(3)), 2), * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 257 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(57), POW(materialize(3), 2), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 57), POW(materialize(3), 2), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 259 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), POW(toInt128(257), 3, 2), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), POW(toInt128(257), 3, 2), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), POW(toInt128(257), 3, 2), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 262 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(3, 2), * FROM clear_column__fuzz_21 ORDER BY clear_column__fuzz_44 ASC, materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(3, 2), * FROM clear_column__fuzz_21 ORDER BY clear_column__fuzz_44 ASC, materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_44' in scope SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(3, 2), * FROM clear_column__fuzz_21 ORDER BY clear_column__fuzz_44 ASC, materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 266 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(materialize(57)), POW(materialize(3), 2), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 269 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, * FROM clear_column__fuzz_17 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toLowCardinality(2), toString(time)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, * FROM clear_column__fuzz_17 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toLowCardinality(2), toString(time)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, * FROM clear_column__fuzz_17 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('ok'), toLowCardinality(2), toString(time)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 278 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 279 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 280 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 282 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 284 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_16 GROUP BY POW(toLowCardinality(2)), if(dateDiff('second', toDateTime(tupleElement(time, POWER(POW(3, toNullable(toUInt256(2)))), 1)), toDateTime(time.2)) = toNullable(toNullable(toLowCardinality(3)), 0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_16 GROUP BY POW(toLowCardinality(2)), if(dateDiff('second', toDateTime(tupleElement(time, POWER(POW(3, toNullable(toUInt256(2)))), 1)), toDateTime(time.2)) = toNullable(toNullable(toLowCardinality(3)), 0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_16 GROUP BY POW(toLowCardinality(2)), if(dateDiff('second', toDateTime(tupleElement(time, POWER(POW(3, toNullable(toUInt256(2)))), 1)), toDateTime(time.2)) = toNullable(toNullable(toLowCardinality(3)), 0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 285 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', materialize(57)), 57, materialize(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', materialize(57)), 57, materialize(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', materialize(57)), 57, materialize(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e423cb0 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 289 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt128(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt128(57), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toLowCardinality(57), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt128(57), '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57), * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toLowCardinality(57), * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 296 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toNullable(57)), toNullable(57), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, POW(clear_column__fuzz_27, toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toNullable(57)), toNullable(57), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, POW(clear_column__fuzz_27, toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_27' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toNullable(57)), toNullable(57), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, POW(clear_column__fuzz_27, toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 299 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 304 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_24 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)), 57, 57, * FROM clear_column__fuzz_29 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 313 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 314 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 316 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 317 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 320 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 321 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 322 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 323 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 324 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 326 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 327 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 328 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 329 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 330 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 331 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 335 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 339 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 341 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 344 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 346 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 349 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 350 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 351 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 352 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 355 out of 1000 EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 356 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 357 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 358 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 360 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 361 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 363 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 364 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 365 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 366 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 367 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 368 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 369 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 372 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 373 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 374 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 377 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 378 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 379 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 380 out of 1000 EXPLAIN PIPELINE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 384 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 (''01473_metric_log_table_event_start_time_microseconds_test''): '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 385 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 386 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 387 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 388 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 390 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 391 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, * FROM clear_column__fuzz_0 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, * FROM clear_column__fuzz_29 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57), * FROM clear_column__fuzz_20 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57), * FROM clear_column__fuzz_28 WHERE materialize(57) ORDER BY pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)) ASC, materialize(materialize(toLowCardinality(2))) ASC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57), * FROM clear_column__fuzz_28 WHERE materialize(57) ORDER BY pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)) ASC, materialize(materialize(toLowCardinality(2))) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(57), * FROM clear_column__fuzz_28 WHERE materialize(57) ORDER BY pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)) ASC, materialize(materialize(toLowCardinality(2))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 395 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toNullable(57), * FROM clear_column__fuzz_17 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toNullable(toLowCardinality(57)), * FROM clear_column__fuzz_26 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toNullable(toLowCardinality(57)), * FROM clear_column__fuzz_26 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), toNullable(toLowCardinality(57)), * FROM clear_column__fuzz_24 WHERE materialize(materialize(57)) GROUP BY toString(POWER(3), time), POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)), toFixedString('ok', toNullable(toUInt128(2))) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), toNullable(toLowCardinality(57)), * FROM clear_column__fuzz_24 WHERE materialize(materialize(57)) GROUP BY toString(POWER(3), time), POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)), toFixedString('ok', toNullable(toUInt128(2))) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toNullable(57), toNullable(toLowCardinality(57)), * FROM clear_column__fuzz_24 WHERE materialize(materialize(57)) GROUP BY toString(POWER(3), time), POWER(materialize(toLowCardinality(3)), toNullable(3), toLowCardinality(2)), toFixedString('ok', toNullable(toUInt128(2))) ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 399 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toNullable(toLowCardinality(57)), * FROM clear_column__fuzz_24 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), toLowCardinality(57), * FROM clear_column__fuzz_24 WHERE materialize(materialize(57)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_24 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 404 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(toLowCardinality(57)), * FROM clear_column__fuzz_24 WHERE materialize(57) ORDER BY POW(3) ASC, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(toLowCardinality(57)), * FROM clear_column__fuzz_24 WHERE materialize(57) ORDER BY POW(3) ASC, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(toLowCardinality(57)), * FROM clear_column__fuzz_24 WHERE materialize(57) ORDER BY POW(3) ASC, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 406 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 408 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 410 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 411 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 412 out of 1000 EXPLAIN SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 413 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT materialize(toLowCardinality(toLowCardinality(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), toUInt256(pow(materialize(materialize(3)), toLowCardinality(toNullable(2))), 57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'SELECT materialize(toLowCardinality(toLowCardinality(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), toUInt256(pow(materialize(materialize(3)), toLowCardinality(toNullable(2))), 57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) 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 SELECT materialize(toLowCardinality(toLowCardinality(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), toUInt256(pow(materialize(materialize(3)), toLowCardinality(toNullable(2))), 57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 415 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 416 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_17 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(57)), toLowCardinality(57), * FROM clear_column__fuzz_0 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_0 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, toFixedString(POWER(toNullable(2), toLowCardinality(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_18 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, toFixedString(POWER(toNullable(2), toLowCardinality(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_18 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, toFixedString(POWER(toNullable(2), toLowCardinality(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_18 WHERE materialize(57) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 420 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt256(57), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 SELECT materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57, toUInt256(57), 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(materialize(57))), 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toNullable(toLowCardinality(materialize(57))), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(materialize(toLowCardinality(toUInt128(57))))), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(materialize(toLowCardinality(toUInt128(57))))), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 425 out of 1000 EXPLAIN PIPELINE header = true SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toLowCardinality(materialize(57)), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, toLowCardinality(materialize(57)), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 426 out of 1000 SELECT materialize(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test'))), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(materialize(57), toLowCardinality(57)), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(materialize(57), toLowCardinality(57)), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) 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 materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(materialize(57), toLowCardinality(57)), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 430 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57), materialize(57), toUInt128(3), 57, * FROM clear_column__fuzz_16 GROUP BY toString(toNullable(toUInt256(2)), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)), pow(3, 2) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57), materialize(57), toUInt128(3), 57, * FROM clear_column__fuzz_16 GROUP BY toString(toNullable(toUInt256(2)), time), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(time)), pow(3, 2) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57), materialize(57), toUInt128(3), 57, * FROM clear_column__fuzz_16 GROUP BY toString(toNullable(toUInt256(2)), time), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(time)), pow(3, 2) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 431 out of 1000 SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, materialize(57), toNullable(toUInt128(3)), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, toNullable(3), 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 3, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 3, 57, '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(toUInt256(57))), '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(57)), toLowCardinality(57), toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(toUInt256(57))), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), toLowCardinality(57), toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toNullable(toLowCardinality(57)), 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toNullable(57), 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toNullable(57), 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'SELECT if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toNullable(57), 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time)), materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toLowCardinality(57), toNullable(57), 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 441 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 444 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 446 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 447 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(time), 0), 'ok', toString(2)), 57)), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(time), 0), 'ok', toString(2)), 57)), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toString(time), 0), 'ok', toString(2)), 57)), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 448 out of 1000 EXPLAIN PIPELINE compact = true SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC, materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 449 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, materialize(toLowCardinality(57)), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 450 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 452 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 453 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 456 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(toLowCardinality(3)), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(3), 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(3), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), materialize(power(3, 2), 3), 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), materialize(power(3, 2), 3), 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), materialize(power(3, 2), 3), 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 463 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(materialize(toUInt256(3))), 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(materialize(toUInt256(3))), 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 465 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(materialize(toUInt256(3))), 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 466 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(toUInt256(3)), 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(3), 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(3), 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(3), 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(3), 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 471 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(3), 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(3), toLowCardinality(toUInt128(57)), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 475 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_26 WHERE '01473_query_thread_log_table_event_start_time_microseconds_test' ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_26 WHERE '01473_query_thread_log_table_event_start_time_microseconds_test' ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_26 WHERE '01473_query_thread_log_table_event_start_time_microseconds_test' ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 480 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toUInt128(57), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 485 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 487 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 489 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_20 PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, materialize(toFixedString('ok', 2)), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_20 PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, materialize(toFixedString('ok', 2)), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_20 PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, materialize(toFixedString('ok', 2)), toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 493 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, toLowCardinality(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 496 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 3, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(57), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 502 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 504 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 505 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT toNullable(toUInt256(toNullable(toUInt128(3))), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toNullable(toUInt256(toNullable(toUInt128(3))), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) 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(toUInt256(toNullable(toUInt128(3))), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 507 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, toUInt256(57), * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT toNullable(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 57, 57, 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT toNullable(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 512 out of 1000 SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) 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(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 513 out of 1000 SELECT toNullable(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(2)))) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 57)), 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toNullable(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(2)))) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 57)), 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 57)), 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 514 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57)), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toNullable(toFixedString(toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57)), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) 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(toFixedString(toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57)), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 515 out of 1000 SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) 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(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 516 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) 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(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 519 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), 57, 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(toLowCardinality(2)) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Error on processing query 'SELECT toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(toLowCardinality(2)) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) ASC 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 toNullable(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(toLowCardinality(2)) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 522 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString(57))), toNullable('second'), 57)), 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString(57))), toNullable('second'), 57)), 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) 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 toNullable(toFixedString(toNullable(toNullable(toFixedString(57))), toNullable('second'), 57)), 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 523 out of 1000 SELECT toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), 57, 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57), 57, 57, 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), 57, 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), 57, 57, toUInt128(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, toUInt128(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 533 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, materialize(57), 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, materialize(57), 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 536 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, materialize(57), 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, materialize(57), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 EXPLAIN `header, description` = true SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, materialize(57), 57, * FROM clear_column__fuzz_18 WHERE toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, toUInt128(2)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'EXPLAIN `header, description` = true SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, materialize(57), 57, * FROM clear_column__fuzz_18 WHERE toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, toUInt128(2)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toUInt128(57), 57, materialize(57), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, materialize(57), 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, materialize(57), 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC 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 toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 550 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(toLowCardinality(57)), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT toNullable(materialize(toLowCardinality(2)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toNullable(materialize(toLowCardinality(2)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) 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 toNullable(materialize(toLowCardinality(2)), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), toUInt128(57), 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 552 out of 1000 SELECT toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(toLowCardinality(57)), toUInt128(57), materialize(57), 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(toLowCardinality(57)), toUInt128(57), materialize(57), 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) 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 toNullable(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(toLowCardinality(57)), toUInt128(57), materialize(57), 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 553 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Got boring AST Fuzzing step 555 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) 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 toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 556 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Got boring AST Fuzzing step 560 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57)), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57)), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Second argument for function toFixedString must be constant: In scope SELECT toFixedString(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57)), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. DB::FunctionToFixedString::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e423cb0 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 564 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT toFixedString(toFixedString(7, '01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Error on processing query 'SELECT toFixedString(toFixedString(7, '01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC': 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(7, '01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 566 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_24 WHERE power(toNullable(3), toNullable(2)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_24 WHERE power(toNullable(3), toNullable(2)) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 567 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 PREWHERE power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 PREWHERE power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2) ORDER BY materialize(materialize(toLowCardinality(2))) 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 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 PREWHERE power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2) ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 568 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = 0, time), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = 0, time), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = 0, time), toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 576 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(57))), 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(57))), 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(57)), 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(57)), 57, materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, materialize(57), 57, 57, 57, 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, materialize(57), 57, toNullable(57), 57, 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, materialize(57), 57, toNullable(toLowCardinality(toUInt128(57))), 57, 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)), 57, materialize(57), 57, toNullable(toLowCardinality(toUInt128(toUInt128(57)))), 57, toUInt128(57), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)), 57, materialize(57), 57, toLowCardinality(toUInt128(toUInt128(57))), 57, toUInt128(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(toLowCardinality(3).2)) = toNullable(0), 57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)), 57, materialize(57), 57, toLowCardinality(toUInt128(toUInt128(57))), 57, toUInt128(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(toLowCardinality(3).2)) = toNullable(0), 57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)), 57, materialize(57), 57, toLowCardinality(toUInt128(toUInt128(57))), 57, toUInt128(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(toLowCardinality(3).2)) = toNullable(0), 57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 585 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(materialize(57)), 57, 57, 57, toNullable(toUInt128(toUInt128(57))), 57, toUInt128(57), * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT toLowCardinality(POWER(toNullable(toLowCardinality(3)), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toLowCardinality(POWER(toNullable(toLowCardinality(3)), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) 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(POWER(toNullable(toLowCardinality(3)), 2), toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 590 out of 1000 SELECT toLowCardinality('01473_query_log_table_event_start_time_microseconds_test', 56, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality('01473_query_log_table_event_start_time_microseconds_test', 56, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 3, should be 1: In scope SELECT toLowCardinality('01473_query_log_table_event_start_time_microseconds_test', 56, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 591 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, toUInt256(57), * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), toNullable(57), 57, 57, 57, toUInt128(toUInt128(57)), 57, toUInt256(57), * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 593 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 57 ('toLowCardinality'): toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 596 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 597 out of 1000 EXPLAIN SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 EXPLAIN SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 599 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 601 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 602 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 EXPLAIN AST SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 EXPLAIN AST SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 605 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 607 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 608 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 610 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 611 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 615 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 616 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 617 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 619 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) 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 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(toLowCardinality(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780eaef 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 623 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), 57, 57, 57, 57, toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57, 57, 57, toNullable(57), toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57, 57, 57, toNullable(57), toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) 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 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57, 57, 57, toNullable(57), toUInt128(57), 57, toUInt256(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 628 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), 57, 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), 57, 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_21 PREWHERE materialize('01473_trace_log_table_event_start_time_microseconds_test') ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), 57, 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_21 PREWHERE materialize('01473_trace_log_table_event_start_time_microseconds_test') ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57))), 57, 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_21 PREWHERE materialize('01473_trace_log_table_event_start_time_microseconds_test') ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 630 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57, 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57, 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) 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('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 57, 57, 57, 57, toUInt128(57), 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 631 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) 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 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 634 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 636 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) 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('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 637 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_16 WHERE toString(toNullable(toUInt256(2))) ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_16 WHERE toString(toNullable(toUInt256(2))) ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(String). In query SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_16 WHERE toString(toNullable(toUInt256(2))) ORDER BY materialize(materialize(toLowCardinality(2))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 640 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toUInt128(57)), materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toUInt128(57)), materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 643 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toUInt128(57)), materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(toUInt128(57)), materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 645 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(57), 57, 57, 57, toNullable(toUInt128(57)), 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, materialize(57), 57, 57, 57, toNullable(toUInt128(57)), 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 650 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, 57, 57, 57, toUInt128(57), 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 655 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, materialize(57), 57, 57, 57, 57, 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 656 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 657 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 658 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 659 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(toNullable(57)), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 662 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 664 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 665 out of 1000 EXPLAIN ESTIMATE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 666 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 668 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 669 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 670 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 672 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 674 out of 1000 EXPLAIN QUERY TREE SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 EXPLAIN SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 679 out of 1000 EXPLAIN AST SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 680 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 682 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57), 57, 57, 57, 57, 57, 57, materialize(57), * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), toUInt256(57), 57, 57, 57, 57, 57, 57, 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 EXPLAIN SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 EXPLAIN SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 690 out of 1000 EXPLAIN SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 691 out of 1000 EXPLAIN PIPELINE SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN PIPELINE SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 693 out of 1000 EXPLAIN PIPELINE SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 694 out of 1000 EXPLAIN SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN SYNTAX SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 59 ('toNullable'): toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 697 out of 1000 SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 SELECT toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 701 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, 57, toNullable(57), 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, toUInt128(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, toUInt128(57), * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, toUInt128(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 706 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, toUInt128(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 707 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)), 57)), 57, toUInt128(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)), 57)), 57, toUInt128(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString(toFixedString('ok', 2), 2), toString(time)), 57)), 57, toUInt128(57), * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 708 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(toUInt256(57)), 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(57), 57, 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(57), 57, 57, * FROM clear_column__fuzz_20 GROUP BY toFixedString('ok', 2, 2) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Error on processing query 'SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(57), 57, 57, * FROM clear_column__fuzz_20 GROUP BY toFixedString('ok', 2, 2) ORDER BY materialize(materialize(toLowCardinality(2))) 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 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, 57, 57, 57, toNullable(57), 57, 57, * FROM clear_column__fuzz_20 GROUP BY toFixedString('ok', 2, 2) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 711 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, 57, 57, toNullable(57), 57, 57, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 712 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 57, 57, 57, toNullable(57), 57, 57, * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 715 out of 1000 SELECT 57, * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT 57, * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT 57, * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 721 out of 1000 SELECT 57, * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT 57, * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT 57, * FROM clear_column__fuzz_24 PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT 57, * FROM clear_column__fuzz_24 PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 57, * FROM clear_column__fuzz_24 PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(0) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 724 out of 1000 EXPLAIN PIPELINE header = true SELECT 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT 57, * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 725 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Got boring AST Fuzzing step 727 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Got boring AST Fuzzing step 729 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Got boring AST Fuzzing step 730 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 732 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 736 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 737 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 738 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 743 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 745 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 748 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)) ASC, materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Error on processing query 'SELECT * FROM clear_column__fuzz_24 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)) ASC, materialize(materialize(toLowCardinality(2))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT * FROM clear_column__fuzz_24 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)) ASC, materialize(materialize(toLowCardinality(2))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 749 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 750 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 753 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 758 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 763 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Got boring AST Fuzzing step 768 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 779 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 780 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 783 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 784 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 785 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 789 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 791 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 792 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 795 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 797 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 799 out of 1000 EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('*'): * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 800 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 801 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 803 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 805 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 806 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 807 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 808 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 810 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT clear_column__fuzz_32, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Error on processing query 'SELECT clear_column__fuzz_32, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_32' in scope SELECT clear_column__fuzz_32, * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 812 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 813 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 814 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 815 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) ORDER BY materialize(materialize(toLowCardinality(2))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('*'): * FROM clear_column__fuzz_0 GROUP BY materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) ORDER BY materialize(materializ. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 828 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 830 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) ASC, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(3) ASC, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) DESC, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) ASC, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 SELECT * FROM clear_column__fuzz_24 PREWHERE clear_column__fuzz_21 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'SELECT * FROM clear_column__fuzz_24 PREWHERE clear_column__fuzz_21 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_21' in scope SELECT * FROM clear_column__fuzz_24 PREWHERE clear_column__fuzz_21 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 837 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC Got boring AST Fuzzing step 839 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 841 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 844 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 846 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) ASC, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 850 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(3) DESC, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(3) DESC, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) DESC NULLS LAST, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)) DESC, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Error on processing query 'SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) DESC NULLS LAST, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)) DESC, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) DESC NULLS LAST, if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)) DESC, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 864 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY materialize(3) DESC NULLS FIRST, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(3) DESC NULLS FIRST, materialize(materialize(toLowCardinality(2))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) DESC NULLS FIRST, materialize(materialize(toLowCardinality(2))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) DESC NULLS FIRST, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(3) DESC NULLS FIRST, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) ASC Got boring AST Fuzzing step 871 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 875 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 EXPLAIN SYNTAX SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 879 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 881 out of 1000 EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('*'): * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 883 out of 1000 EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('*'): * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 884 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 886 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 888 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 889 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 892 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 893 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 894 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 895 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 897 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 899 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 900 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 901 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 902 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 903 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('*'): * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 906 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 909 out of 1000 EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('*'): * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 910 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 912 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 913 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 915 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 916 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 917 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 918 out of 1000 EXPLAIN PIPELINE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 919 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 921 out of 1000 EXPLAIN SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 EXPLAIN QUERY TREE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 924 out of 1000 EXPLAIN ESTIMATE SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 EXPLAIN AST SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 927 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 930 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 931 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Got boring AST Fuzzing step 933 out of 1000 SELECT * FROM clear_column__fuzz_17 PREWHERE toUInt128(57) ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Error on processing query 'SELECT * FROM clear_column__fuzz_17 PREWHERE toUInt128(57) ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000190d5ca9 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000195e7d5e 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) @ 0x0000000019b418e4 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&) @ 0x000000001a9922ef 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000001a991d48 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000001aa6b363 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:0: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001aa6b0b1 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001aa4d792 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001a96a4fa 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001a968ff0 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000017e07609 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000017e072b0 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 934 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 937 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC, materialize(materialize(toLowCardinality(2))) DESC NULLS FIRST Got boring AST Fuzzing step 940 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) DESC Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) ASC NULLS FIRST, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) DESC NULLS LAST, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) DESC, materialize(materialize(toLowCardinality(2))) ASC Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) DESC Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(3) DESC Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 EXPLAIN PIPELINE compact = true SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 950 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(3) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT * FROM clear_column__fuzz_29 ORDER BY materialize(3) DESC NULLS FIRST Got boring AST Fuzzing step 953 out of 1000 SELECT * FROM clear_column__fuzz_0 ORDER BY materialize(3) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT * FROM clear_column__fuzz_18 PREWHERE toNullable(toLowCardinality(3)) ORDER BY materialize(3) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 955 out of 1000 SELECT * FROM clear_column__fuzz_18 PREWHERE toNullable(toLowCardinality(3)) ORDER BY materialize(3) DESC NULLS FIRST Got boring AST Fuzzing step 956 out of 1000 SELECT * FROM clear_column__fuzz_27 PREWHERE toNullable(toLowCardinality(3)) ORDER BY materialize(3) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT * FROM clear_column__fuzz_24 PREWHERE toNullable(toLowCardinality(toNullable(3))) ORDER BY materialize(3) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT * FROM clear_column__fuzz_24 PREWHERE toNullable(toLowCardinality(toNullable(3))) ORDER BY materialize(3) DESC NULLS FIRST Got boring AST Fuzzing step 959 out of 1000 SELECT * FROM clear_column__fuzz_28 PREWHERE toNullable(toLowCardinality(toNullable(3))) WHERE clear_column__fuzz_33 ORDER BY materialize(3) DESC NULLS LAST Error on processing query 'SELECT * FROM clear_column__fuzz_28 PREWHERE toNullable(toLowCardinality(toNullable(3))) WHERE clear_column__fuzz_33 ORDER BY materialize(3) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_33' in scope SELECT * FROM clear_column__fuzz_28 PREWHERE toNullable(toLowCardinality(toNullable(3))) WHERE clear_column__fuzz_33 ORDER BY materialize(3) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 960 out of 1000 SELECT * FROM clear_column__fuzz_26 PREWHERE toNullable(toLowCardinality(toNullable(3))) ORDER BY materialize(3) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT * FROM clear_column__fuzz_26 PREWHERE toNullable(toLowCardinality(toNullable(3))) ORDER BY materialize(3) DESC NULLS FIRST Got boring AST Fuzzing step 962 out of 1000 SELECT * FROM clear_column__fuzz_18 PREWHERE toNullable(clear_column__fuzz_17, toLowCardinality(toNullable(3))) ORDER BY materialize(3) ASC NULLS LAST Error on processing query 'SELECT * FROM clear_column__fuzz_18 PREWHERE toNullable(clear_column__fuzz_17, toLowCardinality(toNullable(3))) ORDER BY materialize(3) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_17' in scope SELECT * FROM clear_column__fuzz_18 PREWHERE toNullable(clear_column__fuzz_17, toLowCardinality(toNullable(3))) ORDER BY materialize(3) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 963 out of 1000 SELECT * FROM clear_column__fuzz_27 PREWHERE toNullable(toLowCardinality(toNullable(3))) ORDER BY materialize(3) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT * FROM clear_column__fuzz_20 PREWHERE toNullable(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, materialize(2)), toLowCardinality(toNullable(3))) ORDER BY materialize(3) ASC NULLS LAST Error on processing query 'SELECT * FROM clear_column__fuzz_20 PREWHERE toNullable(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, materialize(2)), toLowCardinality(toNullable(3))) ORDER BY materialize(3) 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 SELECT * FROM clear_column__fuzz_20 PREWHERE toNullable(POW(toFixedString(toNullable(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, materialize(2)), toLowCardinality(toNullable(3))) ORDER BY materialize(3) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 965 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(3) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT * FROM clear_column__fuzz_17 GROUP BY POWER(toNullable(3), materialize(2)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))), POW(toLowCardinality(power(toNullable(3), toNullable(2)), 3), 2) ORDER BY materialize(3) ASC NULLS FIRST Error on processing query 'SELECT * FROM clear_column__fuzz_17 GROUP BY POWER(toNullable(3), materialize(2)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))), POW(toLowCardinality(power(toNullable(3), toNullable(2)), 3), 2) ORDER BY materialize(3) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT * FROM clear_column__fuzz_17 GROUP BY POWER(toNullable(3), materialize(2)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))), POW(toLowCardinality(power(toNullable(3), toNullable(2)), 3), 2) ORDER BY materialize(3) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 968 out of 1000 SELECT * FROM clear_column__fuzz_18 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT * FROM clear_column__fuzz_1 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(3) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT * FROM clear_column__fuzz_17 ORDER BY materialize(3) ASC NULLS LAST Got boring AST Fuzzing step 975 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 SELECT * FROM clear_column__fuzz_24 ORDER BY materialize(3) ASC NULLS FIRST Got boring AST Fuzzing step 977 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT * FROM clear_column__fuzz_27 ORDER BY materialize(3) ASC Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) ASC Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT * FROM clear_column__fuzz_28 PREWHERE toUInt256(materialize(toNullable(3))) ORDER BY materialize(3) DESC Error on processing query 'SELECT * FROM clear_column__fuzz_28 PREWHERE toUInt256(materialize(toNullable(3))) ORDER BY materialize(3) DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::FilterDescription::FilterDescription(DB::IColumn const&) @ 0x00000000190d5c0c 5. ./build_docker/./src/Storages/VirtualColumnUtils.cpp:0: DB::VirtualColumnUtils::filterBlockWithExpression(std::shared_ptr const&, DB::Block&) @ 0x00000000195e7d5e 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) @ 0x0000000019b418e4 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&) @ 0x000000001a9922ef 8. ./build_docker/./src/Processors/QueryPlan/ReadFromMergeTree.cpp:1666: DB::ReadFromMergeTree::applyFilters(DB::ActionDAGNodes) @ 0x000000001a991d48 9. ./src/Processors/QueryPlan/SourceStepWithFilter.h:0: DB::SourceStepWithFilter::applyFilters() @ 0x000000001aa6b363 10. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizePrimaryKeyConditionAndLimit.cpp:0: DB::QueryPlanOptimizations::optimizePrimaryKeyConditionAndLimit(std::vector> const&) @ 0x000000001aa6b0b1 11. ./build_docker/./src/Processors/QueryPlan/Optimizations/optimizeTree.cpp:0: DB::QueryPlanOptimizations::optimizeTreeSecondPass(DB::QueryPlanOptimizationSettings const&, DB::QueryPlan::Node&, std::list>&) @ 0x000000001aa4d792 12. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:507: DB::QueryPlan::optimize(DB::QueryPlanOptimizationSettings const&) @ 0x000000001a96a4fa 13. ./build_docker/./src/Processors/QueryPlan/QueryPlan.cpp:0: DB::QueryPlan::buildQueryPipeline(DB::QueryPlanOptimizationSettings const&, DB::BuildQueryPipelineSettings const&) @ 0x000000001a968ff0 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:252: DB::InterpreterSelectQueryAnalyzer::buildQueryPipeline() @ 0x0000000017e07609 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:436: DB::InterpreterSelectQueryAnalyzer::execute() @ 0x0000000017e072b0 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 982 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) ASC NULLS FIRST Got boring AST Fuzzing step 984 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) ASC NULLS FIRST Got boring AST Fuzzing step 985 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT * FROM clear_column__fuzz_21 ORDER BY clear_column__fuzz_47 ASC, materialize(3) ASC Error on processing query 'SELECT * FROM clear_column__fuzz_21 ORDER BY clear_column__fuzz_47 ASC, materialize(3) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_47' in scope SELECT * FROM clear_column__fuzz_21 ORDER BY clear_column__fuzz_47 ASC, materialize(3) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) ASC NULLS FIRST Got boring AST Fuzzing step 988 out of 1000 SELECT * FROM clear_column__fuzz_16 ORDER BY materialize(3) ASC NULLS FIRST Got boring AST Fuzzing step 989 out of 1000 SELECT * FROM clear_column__fuzz_20 ORDER BY materialize(3) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT * FROM clear_column__fuzz_26 ORDER BY materialize(3) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT * FROM clear_column__fuzz_28 ORDER BY materialize(3) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT * FROM clear_column__fuzz_28 PREWHERE 3 ORDER BY materialize(3) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT * FROM clear_column__fuzz_24 PREWHERE 3 ORDER BY materialize(3) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT * FROM clear_column__fuzz_1 PREWHERE 3 ORDER BY materialize(3) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 SELECT * FROM clear_column__fuzz_1 PREWHERE 3 ORDER BY materialize(3) DESC NULLS LAST Got boring AST Fuzzing step 996 out of 1000 SELECT * FROM clear_column__fuzz_20 PREWHERE 3 ORDER BY materialize(3) DESC Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 SELECT * FROM clear_column__fuzz_18 PREWHERE 3 ORDER BY materialize(3) DESC Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT * FROM clear_column__fuzz_27 PREWHERE 3 WHERE 3 ORDER BY materialize(3) DESC Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT * FROM clear_column__fuzz_0 PREWHERE 9223372036854775807 WHERE 65536 ORDER BY materialize(3) DESC Error on processing query 'SELECT * FROM clear_column__fuzz_0 PREWHERE 9223372036854775807 WHERE 65536 ORDER BY materialize(3) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 0 out of 1 Query succeeded, using this AST as a start DROP TABLE IF EXISTS clear_column__fuzz_0 DROP TABLE IF EXISTS clear_column__fuzz_1 DROP TABLE IF EXISTS clear_column__fuzz_2 DROP TABLE IF EXISTS clear_column__fuzz_3 DROP TABLE IF EXISTS clear_column__fuzz_4 DROP TABLE IF EXISTS clear_column__fuzz_5 DROP TABLE IF EXISTS clear_column__fuzz_6 DROP TABLE IF EXISTS clear_column__fuzz_7 DROP TABLE IF EXISTS clear_column__fuzz_8 DROP TABLE IF EXISTS clear_column__fuzz_9 DROP TABLE IF EXISTS clear_column__fuzz_10 DROP TABLE IF EXISTS clear_column__fuzz_11 DROP TABLE IF EXISTS clear_column__fuzz_12 DROP TABLE IF EXISTS clear_column__fuzz_13 DROP TABLE IF EXISTS clear_column__fuzz_14 DROP TABLE IF EXISTS clear_column__fuzz_15 DROP TABLE IF EXISTS clear_column__fuzz_16 DROP TABLE IF EXISTS clear_column__fuzz_17 DROP TABLE IF EXISTS clear_column__fuzz_18 DROP TABLE IF EXISTS clear_column__fuzz_19 DROP TABLE IF EXISTS clear_column__fuzz_20 DROP TABLE IF EXISTS clear_column__fuzz_21 DROP TABLE IF EXISTS clear_column__fuzz_22 DROP TABLE IF EXISTS clear_column__fuzz_23 DROP TABLE IF EXISTS clear_column__fuzz_24 DROP TABLE IF EXISTS clear_column__fuzz_25 DROP TABLE IF EXISTS clear_column__fuzz_26 DROP TABLE IF EXISTS clear_column__fuzz_27 DROP TABLE IF EXISTS clear_column__fuzz_28 DROP TABLE IF EXISTS clear_column__fuzz_29 DROP TABLE IF EXISTS clear_column__fuzz_30 DROP TABLE IF EXISTS clear_column__fuzz_31 DROP TABLE IF EXISTS clear_column__fuzz_32 DROP TABLE IF EXISTS clear_column__fuzz_33 DROP TABLE IF EXISTS clear_column__fuzz_34 DROP TABLE IF EXISTS clear_column__fuzz_35 DROP TABLE IF EXISTS clear_column__fuzz_36 DROP TABLE IF EXISTS clear_column__fuzz_37 DROP TABLE IF EXISTS clear_column__fuzz_38 DROP TABLE IF EXISTS clear_column__fuzz_39 DROP TABLE IF EXISTS clear_column__fuzz_40 DROP TABLE IF EXISTS clear_column__fuzz_41 DROP TABLE IF EXISTS clear_column__fuzz_42 DROP TABLE IF EXISTS clear_column__fuzz_43 DROP TABLE IF EXISTS clear_column__fuzz_44 DROP TABLE IF EXISTS clear_column__fuzz_45 DROP TABLE IF EXISTS clear_column__fuzz_46 DROP TABLE IF EXISTS clear_column__fuzz_47 DROP TABLE IF EXISTS clear_column__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 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 2 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 3 out of 1000 SELECT round(max(log(materialize(toNullable(2))) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), number % toLowCardinality(2), number % 3) % 2 ORDER BY k ASC Error on processing query 'SELECT round(max(log(materialize(toNullable(2))) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), number % toLowCardinality(2), number % 3) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(materialize(toNullable(2))) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), number % toLowCardinality(2), number % 3) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 4 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, (modulo(number, materialize(materialize(toLowCardinality(2))), 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, (modulo(number, materialize(materialize(toLowCardinality(2))), 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, (modulo(number, materialize(materialize(toLowCardinality(2))), 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 6 out of 1000 SELECT round(max(log(2) * number), materialize(toUInt128(57)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number), materialize(toUInt128(57)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'round'. Expected 1 mandatory argument and 1 optional argument, got 3 arguments: In scope SELECT round(max(log(2) * number), materialize(toUInt128(57)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 7 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(toNullable(0), number, 2), number % 3, modulo((number % 2) + (number % 3), toString(57, POWER(2), time), 2) WITH ROLLUP ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(toNullable(0), number, 2), number % 3, modulo((number % 2) + (number % 3), toString(57, POWER(2), time), 2) WITH ROLLUP ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(toNullable(0), number, 2), number % 3, modulo((number % 2) + (number % 3), toString(57, POWER(2), time), 2) WITH ROLLUP ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 8 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 9 out of 1000 SELECT POWER(toNullable(toNullable(3)), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT POWER(toNullable(toNullable(3)), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 12 out of 1000 SELECT POWER(toNullable(toNullable(3)), materialize(toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time), materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toNullable(toNullable(3)), materialize(toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time), materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(toNullable(toNullable(3)), materialize(toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time), materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 13 out of 1000 SELECT POWER(materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(number, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(2)), time)), 2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(number, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(2)), time)), 2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(number, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(2)), time)), 2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 14 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(3, toNullable(toNullable(2))), 2), toString(time)), 2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(3, toNullable(toNullable(2))), 2), toString(time)), 2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(if(dateDiff('second', toDateTime(tupleElement(1)), toDateTime(time.2)) = toNullable(0), toFixedString(toFixedString(2, toLowCardinality('ok'), 2), pow(3, toNullable(toNullable(2))), 2), toString(time)), 2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 16 out of 1000 EXPLAIN QUERY TREE SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(POW(toLowCardinality(3), toLowCardinality(2)), number % 2, number % 3) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(POW(toLowCardinality(3), toLowCardinality(2)), number % 2, number % 3) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 3, should be 2: In scope SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(POW(toLowCardinality(3), toLowCardinality(2)), number % 2, number % 3) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 17 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(toLowCardinality(toNullable(3)), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(toLowCardinality(toNullable(3)), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(toNullable(3), materialize(materialize(toLowCardinality(toNullable(3)), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 18 out of 1000 SELECT POWER(toNullable(3), materialize(if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toUInt256(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(if(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toUInt256(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(toNullable(3), materialize(if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toUInt256(toUInt128(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)), materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 19 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(POW(3, materialize(materialize(POWER(3, 2), 2))), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(POW(3, materialize(materialize(POWER(3, 2), 2))), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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 SELECT POWER(toNullable(3), materialize(materialize(POW(3, materialize(materialize(POWER(3, 2), 2))), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 20 out of 1000 SELECT POWER(toNullable(3), materialize(2)), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(number, if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toLowCardinality(toNullable('ok')), toString(toUInt128(57), time)), 2), number % 3, ((number % 2) + (number % 3)) % toUInt256(2) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toNullable(3), materialize(2)), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(number, if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toLowCardinality(toNullable('ok')), toString(toUInt128(57), time)), 2), number % 3, ((number % 2) + (number % 3)) % toUInt256(2) ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(toNullable(3), materialize(2)), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY modulo(number, if(dateDiff('second', toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toLowCardinality(toNullable('ok')), toString(toUInt128(57), time)), 2), number % 3, ((number % 2) + (number % 3)) % toUInt256(2) ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 21 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT POWER(3, materialize(2)), round(max(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % toUInt128(2) ORDER BY k DESC Error on processing query 'SELECT POWER(3, materialize(2)), round(max(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % toUInt128(2) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 23 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 24 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), toNullable(toUInt256(2)), 6) AS k FROM numbers(POW(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), materialize(toLowCardinality(10000000))) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), toNullable(toUInt256(2)), 6) AS k FROM numbers(POW(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), materialize(toLowCardinality(10000000))) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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 POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), toNullable(toUInt256(2)), 6) AS k FROM numbers(POW(toFixedString(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), materialize(toLowCardinality(10000000))) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 26 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT POWER(toNullable(3), materialize(2)), round(max(log(2) * number), 6) AS k FROM numbers(toUInt256(10000000)) PREWHERE toNullable(2) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(2)), round(max(log(2) * number), 6) AS k FROM numbers(toUInt256(10000000)) PREWHERE toNullable(2) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 28 out of 1000 SELECT POWER(toNullable(3), materialize(2)), round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(2)), round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(toNullable(3), materialize(2)), round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 29 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(POW(toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3, 2), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(POW(toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3, 2), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(toNullable(3), materialize(materialize(POW(toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3, 2), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 30 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 31 out of 1000 SELECT POWER(toNullable(3), materialize(2)), round(max(multiply(log(2), toLowCardinality(toLowCardinality(3)), number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(2)), round(max(multiply(log(2), toLowCardinality(toLowCardinality(3)), number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k 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 SELECT POWER(toNullable(3), materialize(2)), round(max(multiply(log(2), toLowCardinality(toLowCardinality(3)), number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 32 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 34 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(toNullable(toLowCardinality(toUInt256(3))), 10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(2) * number), 6) AS k FROM numbers(toNullable(toLowCardinality(toUInt256(3))), 10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt256)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 35 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(number, power(3, 3, 2), 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(number, power(3, 3, 2), 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(number, power(3, 3, 2), 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 36 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 37 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(multiply(number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(multiply(number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(multiply(number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 38 out of 1000 SELECT POWER(toNullable(3)), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3)), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(toNullable(3)), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 39 out of 1000 SELECT POWER(toNullable(3), materialize(2)), round(max(log(6, toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), materialize(2)), round(max(log(6, toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT POWER(toNullable(3), materialize(2)), round(max(log(6, toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 40 out of 1000 SELECT POWER(toNullable(3), toLowCardinality(3), materialize(materialize(2))), round(max(log(toNullable(toLowCardinality(toNullable(2)))) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toNullable(3), toLowCardinality(3), materialize(materialize(2))), round(max(log(toNullable(toLowCardinality(toNullable(2)))) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(toNullable(3), toLowCardinality(3), materialize(materialize(2))), round(max(log(toNullable(toLowCardinality(toNullable(2)))) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 41 out of 1000 SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(multiply(toNullable(toUInt128(3)), log(2), number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(multiply(toNullable(toUInt128(3)), log(2), number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT POWER(toNullable(3), materialize(materialize(2))), round(max(multiply(toNullable(toUInt128(3)), log(2), number)), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 42 out of 1000 SELECT POWER(3, materialize(materialize(toNullable(2)))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT POWER(3, materialize(materialize(toNullable(2)))), round(max(log(toNullable(toString(2, 57, POWER(2, materialize(3)), time), 2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(3, materialize(materialize(toNullable(2)))), round(max(log(toNullable(toString(2, 57, POWER(2, materialize(3)), time), 2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(3, materialize(materialize(toNullable(2)))), round(max(log(toNullable(toString(2, 57, POWER(2, materialize(3)), time), 2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 44 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 46 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 48 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 49 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(multiply(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), POWER(toNullable(3), 2), 57), log(toNullable(2)), number)), 6) AS k FROM numbers(toUInt128(10000000)) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(multiply(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), POWER(toNullable(3), 2), 57), log(toNullable(2)), number)), 6) AS k FROM numbers(toUInt128(10000000)) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 50 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(toNullable(2)) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 51 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT POWER(toLowCardinality(3)), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toLowCardinality(3)), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(toLowCardinality(3)), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 53 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(toNullable(10000000)) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(toNullable(10000000)) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 54 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(materialize(0), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toLowCardinality(3), materialize(toNullable(materialize(0), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC 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 POWER(toLowCardinality(3), materialize(toNullable(materialize(0), 2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 55 out of 1000 SELECT POWER(toLowCardinality(3), materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 56 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY number % 2, number % materialize(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY number % 2, number % materialize(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 58 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(toNullable(10000000)) PREWHERE materialize(power(toLowCardinality(3), toNullable(3), 2), 3) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(toNullable(10000000)) PREWHERE materialize(power(toLowCardinality(3), toNullable(3), 2), 3) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 59 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 60 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(clear_column__fuzz_39, number % 2, number % 3) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(clear_column__fuzz_39, number % 2, number % 3) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_39' in scope SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(clear_column__fuzz_39, number % 2, number % 3) % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 61 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(POW(3, toNullable(toUInt256(2))), 10000000) GROUP BY number % 2, number % materialize(3), modulo((number % 2) + (number % 3)) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(POW(3, toNullable(toUInt256(2))), 10000000) GROUP BY number % 2, number % materialize(3), modulo((number % 2) + (number % 3)) ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(POW(3, toNullable(toUInt256(2))), 10000000) GROUP BY number % 2, number % materialize(3), modulo((number % 2) + (number % 3)) ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 62 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (number % 2), (number % 3), (((number % 2) + (number % 3)) % 2)) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (number % 2), (number % 3), (((number % 2) + (number % 3)) % 2)) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, materialize('ok', 2), toString(time)), 2) * number), 6) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (number % 2), (number % 3), ((modulo(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)), number, 2) + (number % 3)) % 2)) ORDER BY k ASC Error on processing query 'SELECT POWER(3, materialize(toNullable(2))), round(max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, materialize('ok', 2), toString(time)), 2) * number), 6) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((number % 2), (number % 3), ((modulo(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)), number, 2) + (number % 3)) % 2)) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(3, materialize(toNullable(2))), round(max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(2)))) = 0, materialize('ok', 2), toString(time)), 2) * number), 6) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((number % 2), (number % 3), ((modulo(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), number, 2) + (number % 3)) % 2)) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 65 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT POWER(3, materialize(toNullable(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(materialize(toUInt128(10000000))) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(materialize(toUInt128(10000000))) WITH TOTALS ORDER BY k ASC': 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('10000000', 'UInt128')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 68 out of 1000 SELECT POWER(3, toNullable(2)), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT toNullable(57), POWER(3, toNullable(2)), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 73 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 78 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 79 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT toNullable(57), POWER(3, toNullable(materialize(2))), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 81 out of 1000 SELECT toNullable(57), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT toNullable(57), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toNullable(57), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k DESC 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 83 out of 1000 SELECT toNullable(57), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT toNullable(57), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 85 out of 1000 SELECT toNullable(57), POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT toNullable(materialize(57)), POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT round(max(log(2) * number)), toNullable(materialize(57)), POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT round(max(log(2) * number)), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 90 out of 1000 SELECT round(max(log(2) * number)), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 91 out of 1000 SELECT round(max(log(2) * number)), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT round(max(log(toLowCardinality(toUInt128(2))) * number)), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(max(log(toLowCardinality(toUInt128(2))) * number)), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k 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 SELECT round(max(log(toLowCardinality(toUInt128(2))) * number)), toNullable(materialize(57)), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 93 out of 1000 SELECT round(max(log(2) * number)), toNullable(57), POWER(3, 2), round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), toNullable(57), POWER(3, 2), round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)), toNullable(57), POWER(3, 2), round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 94 out of 1000 SELECT round(max(log(2) * number)), materialize(57), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), materialize(57), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), materialize(57), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), materialize(57), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), materialize(57), POWER(toLowCardinality(3), 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), materialize(57), POWER(toLowCardinality(3), 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), materialize(57), POWER(toLowCardinality(3), 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 101 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), materialize(57), POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 106 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(3, 2), round(max(log(toNullable(clear_column__fuzz_39, 2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(3, 2), round(max(log(toNullable(clear_column__fuzz_39, 2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_39' in scope SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(3, 2), round(max(log(toNullable(clear_column__fuzz_39, 2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 107 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(toUInt256(3), 2), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(toUInt256(3), 2), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT round(max(log(2) * number) IGNORE NULLS), 57, POWER(toUInt256(3), 2), round(max(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 108 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 111 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 113 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(toLowCardinality(3), toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(toLowCardinality(3), toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(toLowCardinality(3), toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 118 out of 1000 SELECT round(max(multiply(log(2)))), 57, POWER(3, 2), round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT round(max(multiply(log(2)))), 57, POWER(3, 2), round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST, k 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 SELECT round(max(multiply(log(2)))), 57, POWER(3, 2), round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 119 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(materialize(toLowCardinality(toNullable(2)))) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC, k DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), 57, POWER(3, 2), round(max(log(materialize(toLowCardinality(toNullable(2)))) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 122 out of 1000 SELECT round(max(log(2) * number)), toUInt256(toUInt256(3)), 57, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, 2), round(max(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, 2), round(max(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 124 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT round(max(log(2) * number)), toDateTime(tupleElement(time, toLowCardinality(2))), toUInt256(3), 57, round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, toNullable(10000000)) PREWHERE pow(toNullable(3), toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number)), toDateTime(tupleElement(time, toLowCardinality(2))), toUInt256(3), 57, round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, toNullable(10000000)) PREWHERE pow(toNullable(3), toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 126 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, toUInt256(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, toUInt256(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, toUInt256(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 127 out of 1000 SELECT round(max(multiply(toNullable(0), log(2), number))), toUInt256(3), 57, POWER(3, 2), round(max(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(multiply(toNullable(0), log(2), number))), toUInt256(3), 57, POWER(3, 2), round(max(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT round(max(multiply(toNullable(0), log(2), number))), toUInt256(3), 57, POWER(3, 2), round(max(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 128 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 129 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 130 out of 1000 SELECT round(max(log(2) * number)), toUInt256(clear_column__fuzz_38, 3), 57, POWER(3, 2), round(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, toLowCardinality(57), POWER(POW(3, toNullable(toUInt256(2)))), time)), max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number)), toUInt256(clear_column__fuzz_38, 3), 57, POWER(3, 2), round(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, toLowCardinality(57), POWER(POW(3, toNullable(toUInt256(2)))), time)), max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_38' in scope SELECT round(max(log(2) * number)), toUInt256(clear_column__fuzz_38, 3), 57, POWER(3, 2), round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, toLowCardinality(57), POWER(POW(3, toNullable(toUInt256(2)))), time)), max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 131 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 133 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), 57, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), 57, toString(toUInt128(2), 57, POWER(toNullable(2), 3), time), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), toUInt256(3), 57, toString(toUInt128(2), 57, POWER(toNullable(2), 3), time), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)), toUInt256(3), 57, toString(toUInt128(2), 57, POWER(toNullable(2), 3), time), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 135 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), materialize(toLowCardinality(toUInt128(57))), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6), 10000000) WHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), toUInt256(3), toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6), 10000000) WHERE toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 137 out of 1000 SELECT round(max(log(2) * number)), toUInt256(3), toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WHERE POWER(materialize(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), toUInt256(3), toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WHERE POWER(materialize(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Float64 of column pow(materialize(3_UInt8), 2_UInt8) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 138 out of 1000 SELECT round(max(log(2) * number)), 3, materialize(toLowCardinality(toUInt128(57))), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 141 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 144 out of 1000 SELECT round(max(toLowCardinality(POW(toLowCardinality(toNullable(toUInt128(3))), 2), 2), log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, POW(3, toUInt128(toNullable(toUInt128(2)))), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(toLowCardinality(POW(toLowCardinality(toNullable(toUInt128(3))), 2), 2), log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, POW(3, toUInt128(toNullable(toUInt128(2)))), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT round(max(toLowCardinality(POW(toLowCardinality(toNullable(toUInt128(3))), 2), 2), log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, POW(3, toUInt128(toNullable(toUInt128(2)))), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 145 out of 1000 SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(toUInt128(6)), 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(toUInt128(6)), 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 147 out of 1000 SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(materialize('ok'), 2)), toString(power(POWER(POW(3, 2), 2), POW(3, materialize(materialize(toLowCardinality(2)))), toNullable(3), toLowCardinality(2)), time)), number))), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(multiply(log(2)))) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(materialize('ok'), 2)), toString(power(POWER(POW(3, 2), 2), POW(3, materialize(materialize(toLowCardinality(2)))), toNullable(3), toLowCardinality(2)), time)), number))), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(multiply(log(2)))) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(materialize('ok'), 2)), toString(power(POWER(POW(3, 2), 2), POW(3, materialize(materialize(toLowCardinality(2)))), toNullable(3), toLowCardinality(2)), time)), number))), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(multiply(log(2)))) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 148 out of 1000 SELECT round(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(clear_column__fuzz_47, 3, materialize(toUInt256(2))), time)), max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(clear_column__fuzz_47, 3, materialize(toUInt256(2))), time)), max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(clear_column__fuzz_47, 3, materialize(toUInt256(2))), time)), max(log(2) * number)), 3, toLowCardinality(toUInt128(57)), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 149 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 151 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 152 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 153 out of 1000 SELECT round(max(multiply(number)) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(multiply(number)) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(max(multiply(number)) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 154 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 155 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 156 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 157 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 158 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 159 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(6), 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(6), 10000000) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 161 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(3, 2), round(max(log(POW(3, toLowCardinality(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) GROUP BY toLowCardinality(toLowCardinality(materialize(3))), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), POW(toLowCardinality(3), materialize(2)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(3, 2), round(max(log(POW(3, toLowCardinality(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) GROUP BY toLowCardinality(toLowCardinality(materialize(3))), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), POW(toLowCardinality(3), materialize(2)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(3, 2), round(max(log(POW(3, toLowCardinality(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) GROUP BY toLowCardinality(toLowCardinality(materialize(3))), if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), POW(toLowCardinality(3), materialize(2)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 162 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS), toNullable(3), 3, POWER(toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time), 3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS), toNullable(3), 3, POWER(toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time), 3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 164 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(multiply(number)) RESPECT NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(multiply(number)) RESPECT NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(multiply(number)) RESPECT NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 165 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 166 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(POWER(toLowCardinality(3), 2), 6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(POWER(toLowCardinality(3), 2), 6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 167 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 168 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), toNullable(3), 3, toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) 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 round(max(log(2) * number)), toNullable(3), 3, toFixedString(3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 171 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, materialize(10000000)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, materialize(10000000)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 172 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(toNullable(materialize(3)), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(6), 10000000) GROUP BY toNullable(3), POW(toNullable(3), 2) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), toNullable(3), 3, POWER(toNullable(materialize(3)), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(6), 10000000) GROUP BY toNullable(3), POW(toNullable(3), 2) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 173 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3), 2, materialize(materialize(3))), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3), 2, materialize(materialize(3))), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 'ok', toString(2, 57, POWER(POW(3), 2, materialize(materialize(3))), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 174 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT round(max(log(toNullable(2)) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(toNullable(2)) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 176 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 177 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(toNullable(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 178 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT round(max(log(2) * number)), toNullable(3), 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 180 out of 1000 SELECT round(max(log(2) * number)), 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 SELECT round(max(log(2) * number)), 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 SELECT 3, 3, POWER(2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC Error on processing query 'SELECT 3, 3, POWER(2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, 3, POWER(2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 184 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT toNullable(3), 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time), pow(materialize(3), toNullable(2)), toNullable(toNullable(toLowCardinality(toUInt128(3)), 57)) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT toNullable(3), 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time), pow(materialize(3), toNullable(2)), toNullable(toNullable(toLowCardinality(toUInt128(3)), 57)) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(3), 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) GROUP BY toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time), pow(materialize(3), toNullable(2)), toNullable(toNullable(toLowCardinality(toUInt128(3)), 57)) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 186 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY materialize('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 187 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 SELECT 3, 3, POWER(toLowCardinality(toNullable(toUInt256(3))), 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(toLowCardinality(toNullable(toUInt256(3))), 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 3, 3, POWER(toLowCardinality(toNullable(toUInt256(3))), 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 190 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toString(toUInt128(57), POWER(toNullable(3), 2), time) ASC, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toString(toUInt128(57), POWER(toNullable(3), 2), time) ASC, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toString(toUInt128(57), POWER(toNullable(3), 2), time) ASC, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 191 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(multiply(number)) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(multiply(number)) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS FIRST, toNullable(materialize(0)) 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 SELECT 3, 3, POWER(3, 2), round(max(multiply(number)) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 192 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 193 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY toFixedString('ok', 2, 2), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 'ok', 2, toString(power(POWER(POW(toUInt256(3), 2), POW(materialize(3), 2), 2), toNullable(3), 2), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY toFixedString('ok', 2, 2), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 'ok', 2, toString(power(POWER(POW(toUInt256(3), 2), POW(materialize(3), 2), 2), toNullable(3), 2), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) 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 3, 3, POWER(3, 2), round(max(log(toUInt128(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY toFixedString('ok', 2, 2), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 'ok', 2, toString(power(POWER(POW(toUInt256(3), 2), POW(materialize(3), 2), 2), toNullable(3), 2), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 194 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 195 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 196 out of 1000 SELECT 3, 3, POWER(3), round(max(toUInt128(0), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3), round(max(toUInt128(0), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, 3, POWER(3), round(max(toUInt128(0), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 197 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 198 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 199 out of 1000 SELECT 3, 3, POWER(3, toNullable(toUInt128(2))), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, toNullable(toUInt128(2))), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, 3, POWER(3, toNullable(toUInt128(2))), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 200 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 201 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 203 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 205 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 206 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 208 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 209 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 210 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 211 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 212 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 213 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 214 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 215 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 216 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 218 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 219 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 221 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 222 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 227 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 228 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 229 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 231 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 232 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 234 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 235 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 236 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 238 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 239 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 240 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 242 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 243 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 244 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 247 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 248 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 249 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 252 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(multiply(log(toUInt128(2)))) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(multiply(log(toUInt128(2)))) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) 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 SELECT 3, 3, POWER(3, 2), round(max(multiply(log(toUInt128(2)))) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 253 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 254 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 257 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 258 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 259 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 260 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 261 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 262 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) PREWHERE clear_column__fuzz_34 WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) PREWHERE clear_column__fuzz_34 WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_34' in scope SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) PREWHERE clear_column__fuzz_34 WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS LAST, toNullable(materialize(0)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 263 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 264 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 265 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 269 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 270 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 271 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 273 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 274 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 276 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 277 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(toString(2, 57, POWER(POW(3, 2), 2), time), 6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(toString(2, 57, POWER(POW(3, 2), 2), time), 6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'toString(2, 57, pow(_CAST(9., 'Float64'), 2), time)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 278 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 279 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 280 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 281 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 282 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 283 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 284 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 286 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 289 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 290 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 291 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 293 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 296 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 298 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 299 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 300 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 301 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 302 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 303 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 305 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 306 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 307 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 308 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 309 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 310 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 311 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 312 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 313 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 314 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 315 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 316 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 318 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 319 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 320 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 322 out of 1000 EXPLAIN QUERY TREE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 323 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 324 out of 1000 SELECT materialize(toLowCardinality(3)), 3, POWER(3, 2), round(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT materialize(toLowCardinality(3)), 3, POWER(3, 2), round(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(toLowCardinality(3)), 3, POWER(3, 2), round(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)), max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 325 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 326 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 328 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 329 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('3'): 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNul. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 330 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 EXPLAIN SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 332 out of 1000 EXPLAIN ESTIMATE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 EXPLAIN PIPELINE SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 336 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 337 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 338 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 339 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 340 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 341 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 342 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 343 out of 1000 EXPLAIN AST SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 344 out of 1000 EXPLAIN SYNTAX SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(toNullable(toLowCardinality(POW(toLowCardinality(2)), 3)), log(toUInt128(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 2)) * number) IGNORE NULLS) AS k FROM numbers(materialize(toNullable(6))) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, toNullable(3), POWER(3, 2), round(max(toNullable(toLowCardinality(POW(toLowCardinality(2)), 3)), log(toUInt128(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 2)) * number) IGNORE NULLS) AS k FROM numbers(materialize(toNullable(6))) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC': 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(6, 'Nullable(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 348 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) ASC Got boring AST Fuzzing step 350 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 SELECT 3, toNullable(3), POWER(toLowCardinality(3), 2), round(toDateTime(tupleElement(time, toLowCardinality(2))), max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, toNullable(3), POWER(toLowCardinality(3), 2), round(toDateTime(tupleElement(time, toLowCardinality(2))), max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toNullable(3), POWER(toLowCardinality(3), 2), round(toDateTime(tupleElement(time, toLowCardinality(2))), max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 353 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 354 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC Error on processing query 'SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 356 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 357 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 359 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 360 out of 1000 SELECT 3, toNullable(3), POWER(3, 2), round(max(multiply(log(2), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, toNullable(3), POWER(3, 2), round(max(multiply(log(2), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toNullable(3), POWER(3, 2), round(max(multiply(log(2), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 361 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT materialize(3), 3, POWER(3, 2) FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT materialize(3), 3, POWER(3, 2) FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 363 out of 1000 SELECT toUInt128(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 SELECT toUInt128(3), 3, POWER(materialize(toLowCardinality(toUInt128(3))), 3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC Error on processing query 'SELECT toUInt128(3), 3, POWER(materialize(toLowCardinality(toUInt128(3))), 3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toUInt128(3), 3, POWER(materialize(toLowCardinality(toUInt128(3))), 3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 365 out of 1000 SELECT toUInt128(3), 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(3, materialize(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 366 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, 3, POWER(3, 2), round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 368 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WHERE materialize(toNullable(toLowCardinality(3))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WHERE materialize(toNullable(toLowCardinality(3))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 369 out of 1000 SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toNullable(toUInt256(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toNullable(toUInt256(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 370 out of 1000 SELECT 3, 3, POWER(3, toLowCardinality(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 SELECT 3, 3, POWER(3, toLowCardinality(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 372 out of 1000 SELECT 3, 3, POWER(3, toLowCardinality(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT toLowCardinality(3), 3, POWER(3, toNullable(2)), round(max(log(round(max(log(materialize(toLowCardinality(toNullable(2)))) * number) RESPECT NULLS), 2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT toLowCardinality(3), 3, POWER(3, toNullable(2)), round(max(log(round(max(log(materialize(toLowCardinality(toNullable(2)))) * number) RESPECT NULLS), 2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 375 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) PREWHERE materialize(toNullable(0)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) PREWHERE materialize(toNullable(0)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 376 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 377 out of 1000 SELECT 3, POWER(toUInt128(3), toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, POWER(toUInt128(3), toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, POWER(toUInt128(3), toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 378 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 379 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 380 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 381 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 382 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN AST graph = true, optimize = true SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'EXPLAIN AST graph = true, optimize = true SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 384 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT 3, 3, POWER(3, toNullable(2)), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 386 out of 1000 SELECT 3, 3, POWER(materialize(3), toNullable(2)), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT toLowCardinality(3), 3, POWER(materialize(3), toNullable(2)), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 SELECT toLowCardinality(3), 3, POWER(materialize(3), 2), round(max(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT toLowCardinality(3), 3, POWER(materialize(3), 2), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 390 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 392 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 393 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(materialize(toNullable(2))) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, 3, POWER(3, materialize(2)), round(max(log(materialize(toNullable(2))) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 394 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(pow(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, 3, POWER(3, materialize(2)), round(max(log(pow(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, 3, POWER(3, materialize(2)), round(max(log(pow(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 396 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(multiply(clear_column__fuzz_2, log(log(materialize(toNullable(2))) * number, 2), number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, POWER(3, materialize(2)), round(max(multiply(clear_column__fuzz_2, log(log(materialize(toNullable(2))) * number, 2), number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_2' in scope SELECT 3, POWER(3, materialize(2)), round(max(multiply(clear_column__fuzz_2, log(log(materialize(toNullable(2))) * number, 2), number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 398 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 400 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT 3, 3, POWER(3), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, 3, POWER(3), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, 3, POWER(3), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 404 out of 1000 SELECT 3, 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT 3, toUInt256(3), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 SELECT 3, toUInt256(3), POWER(3, materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, toUInt256(3), POWER(3, materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 407 out of 1000 EXPLAIN PIPELINE header = true SELECT 3, toUInt256(3), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT 3, toUInt256(3), POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 408 out of 1000 SELECT 3, toUInt256(3), POWER(3, materialize(2)), round(toNullable(57), max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, toUInt256(3), POWER(3, materialize(2)), round(toNullable(57), max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': 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 3, toUInt256(3), POWER(3, materialize(2)), round(toNullable(57), max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 409 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(toLowCardinality(toUInt128(2))) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 412 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 413 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(multiply(log(2), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, POWER(3, materialize(2)), round(max(multiply(log(2), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT 3, POWER(3, materialize(2)), round(max(multiply(log(2), materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 416 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 417 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 420 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 421 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 422 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, POWER(3, materialize(2)), round(max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, POWER(3, materialize(2)), round(max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 424 out of 1000 SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 426 out of 1000 SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 427 out of 1000 SELECT toLowCardinality(3), POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 SELECT toLowCardinality(3), POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 429 out of 1000 SELECT toLowCardinality(3), POWER(3, 2), round(max(log(toLowCardinality(toNullable(toUInt256(2))), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(3), POWER(3, 2), round(max(log(toLowCardinality(toNullable(toUInt256(2))), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(3), POWER(3, 2), round(max(log(toLowCardinality(toNullable(toUInt256(2))), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 430 out of 1000 SELECT toLowCardinality(3), POWER(3, 2), round(max(multiply(toLowCardinality(toUInt128(6)), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(3), POWER(3, 2), round(max(multiply(toLowCardinality(toUInt128(6)), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT toLowCardinality(3), POWER(3, 2), round(max(multiply(toLowCardinality(toUInt128(6)), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 431 out of 1000 SELECT toLowCardinality(3), POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), toFixedString(toFixedString(2, 'ok', 2), pow(3, toNullable(toNullable(2))), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), toFixedString(toFixedString(2, 'ok', 2), pow(3, toNullable(toNullable(2))), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), 57), toFixedString(toFixedString(2, 'ok', 2), pow(3, toNullable(toNullable(2))), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 433 out of 1000 SELECT toLowCardinality(3), POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 434 out of 1000 SELECT toLowCardinality(3), POWER(if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), 3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(3), POWER(if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), 3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(3), POWER(if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), 3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 435 out of 1000 SELECT toLowCardinality(3), POWER(toUInt128(3), 2) FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(3), POWER(toUInt128(3), 2) FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toLowCardinality(3), POWER(toUInt128(3), 2) FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 436 out of 1000 SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 439 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 440 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 441 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 442 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 444 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 445 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 446 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 448 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 449 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 450 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 451 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 452 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 453 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 454 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 455 out of 1000 EXPLAIN SYNTAX SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 EXPLAIN AST SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN PIPELINE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 461 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 463 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 464 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 465 out of 1000 EXPLAIN ESTIMATE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 466 out of 1000 SELECT 3, POWER(toUInt128(3), 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT 3, POWER(toUInt128(3), 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, POWER(toUInt128(3), 2), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 467 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 469 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 470 out of 1000 EXPLAIN QUERY TREE SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 471 out of 1000 SELECT 3, POWER(3, toLowCardinality(2)), round(max(log(toNullable(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT 3, POWER(3, materialize(toLowCardinality(2))), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(clear_column__fuzz_41, 6) GROUP BY pow(toNullable(3), toNullable(toNullable(2))), toUInt128(2, 57) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(clear_column__fuzz_41, 6) GROUP BY pow(toNullable(3), toNullable(toNullable(2))), toUInt128(2, 57) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Missing columns: 'clear_column__fuzz_41' while processing query: 'clear_column__fuzz_41', required columns: 'clear_column__fuzz_41' 'clear_column__fuzz_41'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 476 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT 3, POWER(3, materialize(2)), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 479 out of 1000 SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(materialize(toLowCardinality(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(materialize(toLowCardinality(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) 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(_CAST(6, 'LowCardinality(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 481 out of 1000 SELECT 3, POWER(3, 2), round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 482 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 484 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 486 out of 1000 SELECT 3, round(max(log(toUInt256(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 SELECT 3 FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3 FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 488 out of 1000 SELECT 3, round(max(log(toUInt256(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT 3, round(max(log(toUInt256(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 490 out of 1000 SELECT 3, round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 491 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT 3, round(max(log(tupleElement(2), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(log(tupleElement(2), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function tupleElement doesn't match: passed 1, should be 2 or 3: In scope SELECT 3, round(max(log(tupleElement(2), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, unsigned long const&) @ 0x0000000007e73806 4. DB::(anonymous namespace)::FunctionTupleElement::getReturnTypeImpl(std::vector> const&) const @ 0x000000000e5380ad 5. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 6. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 7. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 8. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 495 out of 1000 SELECT 3, round(max(multiply('ok', toNullable(toUInt128(2)), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(multiply('ok', toNullable(toUInt128(2)), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 4, should be 2: In scope SELECT 3, round(max(multiply('ok', toNullable(toUInt128(2)), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 496 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 497 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC Got boring AST Fuzzing step 499 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC Got boring AST Fuzzing step 500 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC Got boring AST Fuzzing step 501 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 3, round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true, compact = true SELECT 3, round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 503 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WHERE toFixedString('ok', toNullable(toUInt128(2))) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WHERE toFixedString('ok', toNullable(toUInt128(2))) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(2)). In query SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WHERE toFixedString('ok', toNullable(toUInt128(2))) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 507 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 SELECT 3 FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC Error on processing query 'SELECT 3 FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 509 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 512 out of 1000 SELECT 3, round(max(materialize(3), log(2) * number)) AS k FROM numbers(6) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(2, 57, POWER(POW(3, materialize(2)), 2, materialize(materialize(3))), time), toString(time)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) ASC, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, round(max(materialize(3), log(2) * number)) AS k FROM numbers(6) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), 'ok', toString(2, 57, POWER(POW(3, materialize(2)), 2, materialize(materialize(3))), time), toString(time)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) ASC, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 513 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 514 out of 1000 SELECT 3, round(3, max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, round(3, max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': 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 3, round(3, max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 515 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 516 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 517 out of 1000 SELECT 3, round(max(multiply(POWER(materialize(toLowCardinality(3)), 2), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, round(max(multiply(POWER(materialize(toLowCardinality(3)), 2), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) 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 SELECT 3, round(max(multiply(POWER(materialize(toLowCardinality(3)), 2), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS LAST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 518 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 519 out of 1000 SELECT 3 FROM numbers(6) WHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3 FROM numbers(6) WHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3 FROM numbers(6) WHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 520 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 522 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 523 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC, toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 EXPLAIN PIPELINE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(toUInt128(6)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(toUInt128(6)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 527 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS FIRST, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 528 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT 3, round(max(log(toNullable(2)) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC Error on processing query 'SELECT 3, round(max(log(toNullable(2)) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 530 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 531 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 532 out of 1000 SELECT 3, round(max(log(log(2), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(log(2), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, round(max(log(log(2), 2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) DESC NULLS FIRST, toNullable(materialize(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 533 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 534 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 535 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(materialize(toNullable(toUInt128(3))), toNullable(2)) ASC, toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(materialize(toNullable(toUInt128(3))), toNullable(2)) ASC, toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY pow(materialize(toNullable(toUInt128(3))), toNullable(2)) ASC, toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 536 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS LAST, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 540 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 541 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 542 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 544 out of 1000 EXPLAIN PIPELINE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 EXPLAIN AST SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 EXPLAIN AST SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 547 out of 1000 EXPLAIN SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 548 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 550 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 551 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 552 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 553 out of 1000 EXPLAIN SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 EXPLAIN SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 555 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 556 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('3'): 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 558 out of 1000 EXPLAIN SYNTAX SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 560 out of 1000 EXPLAIN SYNTAX SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 561 out of 1000 EXPLAIN SYNTAX SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 562 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 563 out of 1000 EXPLAIN AST SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 EXPLAIN AST SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 565 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 EXPLAIN SYNTAX SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 EXPLAIN SYNTAX SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toFixedString(toNullable('ok'), toUInt128(2)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 568 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = materialize(0), toFixedString(toFixedString('ok', 2), 2), toString(time)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 570 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Got boring AST Fuzzing step 573 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 576 out of 1000 SELECT 3, round(max(multiply(number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(multiply(number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT 3, round(max(multiply(number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 577 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 578 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(toUInt128(2), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(toUInt128(2), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 580 out of 1000 SELECT 3, round(max(multiply(log(materialize(toNullable(2)))))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(multiply(log(materialize(toNullable(2)))))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, round(max(multiply(log(materialize(toNullable(2)))))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 581 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 582 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 583 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 584 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 587 out of 1000 SELECT 3, round(max(log(materialize(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 590 out of 1000 SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT 3, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)), round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(2)), round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2)), round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 592 out of 1000 SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 593 out of 1000 SELECT 3, round(max(log(toLowCardinality(toNullable('second'), 2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(toLowCardinality(toNullable('second'), 2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 3, round(max(log(toLowCardinality(toNullable('second'), 2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 594 out of 1000 SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) ASC, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) ASC, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)) ASC, toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 595 out of 1000 SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 596 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('3'): 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 597 out of 1000 SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 598 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 600 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 601 out of 1000 SELECT 3, round(max(if(dateDiff(toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)), log(2) * number) RESPECT NULLS) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT 3, round(max(if(dateDiff(toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2))))) = toLowCardinality(0), toFixedString('ok', 2, 2), toString(time)), log(2) * number) RESPECT NULLS) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 602 out of 1000 SELECT 3, round(max(multiply(log(2)))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(multiply(log(2)))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT 3, round(max(multiply(log(2)))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 603 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 605 out of 1000 SELECT 3, round(max(log(toUInt256(2)) * number)) AS k FROM numbers(6) PREWHERE power(materialize(toNullable(3)), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(log(toUInt256(2)) * number)) AS k FROM numbers(6) PREWHERE power(materialize(toNullable(3)), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 606 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 607 out of 1000 SELECT materialize(3), round(max(log(2) * number)) AS k FROM numbers(power(toNullable(3), toLowCardinality(2)), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT materialize(3), round(max(log(2) * number)) AS k FROM numbers(power(toNullable(3), toLowCardinality(2)), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(Float64)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 608 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 610 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 611 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 613 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 614 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 616 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 620 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(toLowCardinality(toUInt128(toUInt128(57))), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(toLowCardinality(toUInt128(toUInt128(57))), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 621 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 622 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 623 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 624 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(materialize(6)) PREWHERE `Null` WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT 3, round(max(log(2) * number)) AS k FROM numbers(materialize(6)) PREWHERE `Null` WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 625 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT 3, round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 628 out of 1000 SELECT 3, round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT round(max(log(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(2, toLowCardinality(3), 2), time)), toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)))), 2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(2, toLowCardinality(3), 2), time)), toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)))), 2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(2), 57, POWER(2, toLowCardinality(3), 2), time)), toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2)))), 2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 631 out of 1000 SELECT round(POW(toLowCardinality(3), dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt128(2)), max(log(toLowCardinality(2)) * number)) AS k FROM numbers(toNullable(toUInt128(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(POW(toLowCardinality(3), dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt128(2)), max(log(toLowCardinality(2)) * number)) AS k FROM numbers(toNullable(toUInt128(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 632 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 634 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 635 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 636 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 637 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 638 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 639 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 640 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE materialize(toUInt128(57)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE materialize(toUInt128(57)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 643 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 644 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 645 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 646 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 648 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 649 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 651 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 652 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 653 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 655 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 656 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 658 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 660 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 662 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 664 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 665 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 666 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 667 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 669 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 670 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 672 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 674 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 678 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 680 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 684 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 689 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 690 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 691 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 692 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 694 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 695 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 696 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 697 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 698 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 699 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 702 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 704 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 706 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 707 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 708 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 709 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 711 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 712 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 EXPLAIN SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 717 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 720 out of 1000 EXPLAIN AST SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 721 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(POW(3, 2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(POW(3, 2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(POW(3, 2)) ASC NULLS FIRST, toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 723 out of 1000 SELECT round(toNullable(materialize(3)), max(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(toNullable(materialize(3)), max(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 724 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 725 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 726 out of 1000 SELECT round(toNullable(57), max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(toNullable(57), max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': 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(toNullable(57), max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 727 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 728 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, 1))) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 730 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WHERE toString(time) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(6) WHERE toString(time) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)) AS k FROM numbers(6) WHERE toString(time) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 731 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 733 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 734 out of 1000 SELECT round(max(multiply(materialize(materialize(toNullable(2))), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(multiply(materialize(materialize(toNullable(2))), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT round(max(multiply(materialize(materialize(toNullable(2))), log(2), number))) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 735 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 737 out of 1000 SELECT round(max(1048575, log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(1048575, log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 738 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 739 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 741 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 743 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WHERE if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(6) WHERE if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)) AS k FROM numbers(6) WHERE if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 744 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(clear_column__fuzz_9, 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(clear_column__fuzz_9, 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'clear_column__fuzz_9' while processing query: 'clear_column__fuzz_9', required columns: 'clear_column__fuzz_9' 'clear_column__fuzz_9'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 745 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 746 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 747 out of 1000 SELECT round(max(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(materialize(2)) * number), log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(materialize(2)) * number), log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(materialize(2)) * number), log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 748 out of 1000 SELECT round(max(multiply(POWER(POW(3, 2), materialize(2)), log(2), number))) AS k FROM numbers(6) GROUP BY round(max(log(materialize(toNullable(2))) * number) RESPECT NULLS), toString(2, 57, POWER(POW(3, 2), 2), time) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(multiply(POWER(POW(3, 2), materialize(2)), log(2), number))) AS k FROM numbers(6) GROUP BY round(max(log(materialize(toNullable(2))) * number) RESPECT NULLS), toString(2, 57, POWER(POW(3, 2), 2), time) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT round(max(multiply(POWER(POW(3, 2), materialize(2)), log(2), number))) AS k FROM numbers(6) GROUP BY round(max(log(materialize(toNullable(2))) * number) RESPECT NULLS), toString(2, 57, POWER(POW(3, 2), 2), time) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 749 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT round(max(log(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(toLowCardinality(3), 2), time), POWER(POW(2)), time)), 2) * number)) AS k FROM numbers(6) WHERE toNullable(toLowCardinality(materialize(57))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(toLowCardinality(3), 2), time), POWER(POW(2)), time)), 2) * number)) AS k FROM numbers(6) WHERE toNullable(toLowCardinality(materialize(57))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(toLowCardinality(3), 2), time), POWER(POW(2)), time)), 2) * number)) AS k FROM numbers(6) WHERE toNullable(toLowCardinality(materialize(57))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 751 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 752 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff(toLowCardinality(_CAST('second', 'Nullable(String)')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 753 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 754 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 755 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 756 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)) AS k FROM numbers(6) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 757 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 758 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 759 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 761 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 762 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 763 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 764 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 765 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 766 out of 1000 EXPLAIN PIPELINE compact = true SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 768 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 769 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 771 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 772 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 773 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 774 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 775 out of 1000 SELECT round(toInt128(257), max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(toInt128(257), max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': 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(toInt128(257), max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 776 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 778 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 779 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 781 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 782 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(materialize(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(materialize(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 784 out of 1000 SELECT round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT round(max(multiply(number)) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 785 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 786 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 787 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(POW(POW(3, 2), 2))), materialize(toUInt128(sleep(toString(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), toNullable(2)), 57)), dateDiff('second', toDateTime(tupleElement(toLowCardinality(1))), toDateTime(time.2)), POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(POW(POW(3, 2), 2))), materialize(toUInt128(sleep(toString(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), toNullable(2)), 57)), dateDiff('second', toDateTime(tupleElement(toLowCardinality(1))), toDateTime(time.2)), POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)) AS k FROM numbers(6) GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(POW(POW(3, 2), 2))), materialize(toUInt128(sleep(toString(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), toNullable(2)), 57)), dateDiff('second', toDateTime(tupleElement(toLowCardinality(1))), toDateTime(time.2)), POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, toUInt128(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 788 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 790 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 791 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 793 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 794 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Got boring AST Fuzzing step 796 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN AST graph = true SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers((number % 2) + modulo(number, 0, 3), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'EXPLAIN AST graph = true SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers((number % 2) + modulo(number, 0, 3), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 799 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 801 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 802 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 803 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 804 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 805 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 807 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 808 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 811 out of 1000 SELECT POWER(toNullable(3), materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT POWER(toNullable(3), materialize(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 812 out of 1000 SELECT round(max(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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 SELECT round(max(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 813 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 815 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 816 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Got boring AST Fuzzing step 817 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 819 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Got boring AST Fuzzing step 820 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 823 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 824 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toNullable(63), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toNullable(63), 6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 825 out of 1000 SELECT clear_column__fuzz_14, round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT clear_column__fuzz_14, round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_14' in scope SELECT clear_column__fuzz_14, round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 826 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 828 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 829 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 830 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 831 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 832 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 833 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 834 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 835 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 836 out of 1000 EXPLAIN SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 EXPLAIN SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 838 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 840 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 841 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 843 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 844 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 846 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 848 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 849 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 850 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 851 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 854 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 855 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 856 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 857 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE power(toLowCardinality(3), 3, 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE power(toLowCardinality(3), 3, 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE power(toLowCardinality(3), 3, 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 858 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 859 out of 1000 SELECT round(max(toNullable(toLowCardinality(toUInt128(toUInt128(toDateTime(tupleElement(time, toLowCardinality(2))), 57)))), log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT round(max(toNullable(toLowCardinality(toUInt128(toUInt128(toDateTime(tupleElement(time, toLowCardinality(2))), 57)))), log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(toNullable(toLowCardinality(toUInt128(toUInt128(toDateTime(tupleElement(time, toLowCardinality(2))), 57)))), log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 860 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 861 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 862 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT round(max(round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC Error on processing query 'SELECT round(max(round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x0000000016270334 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 864 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 865 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 867 out of 1000 SELECT pow(materialize(toNullable(3)), toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT pow(materialize(toNullable(3)), toNullable(materialize(toNullable(2)))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT pow(materialize(toNullable(3)), toNullable(materialize(toNullable(2)))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 EXPLAIN ESTIMATE SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 EXPLAIN AST SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 EXPLAIN AST SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 873 out of 1000 EXPLAIN SYNTAX SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 EXPLAIN QUERY TREE SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 EXPLAIN ESTIMATE SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT pow(materialize(toNullable(3)), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT pow(toNullable(3), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 SELECT pow(toNullable(3), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT pow(toNullable(3), materialize(toNullable(2))), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 881 out of 1000 SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 EXPLAIN PIPELINE compact = true SELECT pow(toNullable(3), toNullable(2)), round(max(log(toUInt256(toNullable(3)), materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT pow(toNullable(3), toNullable(2)), round(max(log(toUInt256(toNullable(3)), materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 883 out of 1000 SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE toNullable(toUInt128(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WHERE toNullable(toUInt128(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 884 out of 1000 SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Got boring AST Fuzzing step 885 out of 1000 SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY '01473_text_log_table_event_start_time_microseconds_test', if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(2)))) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toUInt128(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY '01473_text_log_table_event_start_time_microseconds_test', if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(2)))) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toUInt128(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY '01473_text_log_table_event_start_time_microseconds_test', if(dateDiff('second', toDateTime(tupleElement(time, toUInt256(2)))) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), toUInt128(3), 2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 886 out of 1000 SELECT pow(toNullable(toNullable(3)), toNullable(2)), round(max(max(log(2) * number) IGNORE NULLS, log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC Error on processing query 'SELECT pow(toNullable(toNullable(3)), toNullable(2)), round(max(max(log(2) * number) IGNORE NULLS, log(2) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 887 out of 1000 SELECT pow(toNullable(3), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 EXPLAIN AST graph = true SELECT pow(toNullable(toNullable(3)), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time))) = 0, 'ok', toString(POWER(2, 3), time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'EXPLAIN AST graph = true SELECT pow(toNullable(toNullable(3)), toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time))) = 0, 'ok', toString(POWER(2, 3), time)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 889 out of 1000 SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(materialize(toNullable(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(materialize(toNullable(6))) WITH TOTALS ORDER BY toNullable(materialize(0)) 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(_CAST(6, 'Nullable(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 891 out of 1000 SELECT pow(toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT pow(toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT pow(toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 892 out of 1000 SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 894 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 896 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 897 out of 1000 EXPLAIN PIPELINE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 SELECT pow(3, 2), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(materialize(6)) GROUP BY number % materialize(toNullable(3)), toNullable(2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS LAST Error on processing query 'SELECT pow(3, 2), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(materialize(6)) GROUP BY number % materialize(toNullable(3)), toNullable(2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT pow(3, toNullable(2)), round(max(materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)), log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toNullable(2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT pow(3, toNullable(2)), round(max(materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)), log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toNullable(2) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x0000000016270334 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 902 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 903 out of 1000 EXPLAIN PIPELINE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 905 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 907 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 909 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 910 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 911 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 912 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 913 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 914 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 915 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 916 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 917 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 918 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 919 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 920 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 921 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 924 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 925 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 927 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 928 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 929 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 930 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 931 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 932 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 934 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 936 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 937 out of 1000 SELECT pow(3, toNullable(2)), round(max(if(dateDiff(toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT pow(3, toNullable(2)), round(max(if(dateDiff(toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT pow(3, toNullable(2)), round(max(if(dateDiff(toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)), log(2) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 938 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 940 out of 1000 EXPLAIN PIPELINE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 945 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 946 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 949 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 950 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 951 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 952 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 953 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 955 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 956 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 958 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 959 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 961 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 962 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 963 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 964 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 EXPLAIN PIPELINE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 969 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 970 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 971 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 972 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 973 out of 1000 SELECT pow(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(3), 6) GROUP BY number % materialize(3), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'SELECT pow(3, toNullable(2)), round(max(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(3), 6) GROUP BY number % materialize(3), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 976 out of 1000 EXPLAIN ESTIMATE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 977 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 979 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 980 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 982 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 983 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 984 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 985 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 EXPLAIN AST SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 987 out of 1000 EXPLAIN AST SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 988 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 EXPLAIN AST SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 991 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 EXPLAIN SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 993 out of 1000 EXPLAIN AST SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 EXPLAIN QUERY TREE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 996 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 998 out of 1000 EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('pow'): pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinalit. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 999 out of 1000 EXPLAIN SYNTAX SELECT pow(3, toNullable(2)), round(max(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(6) GROUP BY number % materialize(toNullable(3)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY toNullable(materialize(0)) DESC NULLS FIRST Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT POW(3, toLowCardinality(toNullable(toUInt256(2)))), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POW(3, toLowCardinality(toNullable(toUInt256(2)))), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(3, toLowCardinality(toNullable(toUInt256(2)))), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 2 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Got boring AST Fuzzing step 3 out of 1000 SELECT round(avg(log(2) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % materialize(5)) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 SELECT round(avg(log(2) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 SELECT round(avg(log(2) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 6 out of 1000 SELECT round(avg(log(2) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT round(avg(log(toUInt128(2)) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, modulo(tupleElement(time, 1), number, 5) * (number % 5) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(toUInt128(2)) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, modulo(tupleElement(time, 1), number, 5) * (number % 5) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(toUInt128(2)) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, modulo(time.1, number, 5) * (number % 5) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 8 out of 1000 SELECT round(avg(log(2) * number), materialize(6)) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 9 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT round(avg(multiply(log(2), toString(POW(POW(toLowCardinality(3), 2), 2)), number)), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(2), toString(POW(POW(toLowCardinality(3), 2), 2)), number)), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k 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 SELECT round(avg(multiply(log(2), toString(POW(POW(toLowCardinality(3), 2), 2)), number)), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 11 out of 1000 SELECT round(avg(toDateTime(tupleElement(time, toUInt128(1))), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(toDateTime(tupleElement(time, toUInt128(1))), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(toDateTime(tupleElement(time, toUInt128(1))), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 12 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)) GROUP BY number % toNullable(toLowCardinality(5)), (number % 5) * (number % 5) ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)) GROUP BY number % toNullable(toLowCardinality(5)), (number % 5) * (number % 5) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(toUInt256(3)), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time)) GROUP BY number % toNullable(toLowCardinality(5)), (number % 5) * (number % 5) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 13 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 14 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), modulo(number) * (number % 5) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), modulo(number) * (number % 5) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), modulo(number) * (number % 5) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 15 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 16 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 17 out of 1000 SELECT round(avg(POW(3, materialize(toLowCardinality(2))), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC Error on processing query 'SELECT round(avg(POW(3, materialize(toLowCardinality(2))), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 18 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(5), (number % 5) * (number % 5) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 20 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 EXPLAIN PIPELINE header = true SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 22 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 24 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 26 out of 1000 SELECT round(6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 27 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 28 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 30 out of 1000 SELECT round(avg(log(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) PREWHERE toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) PREWHERE toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) PREWHERE toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 31 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 33 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WHERE clear_column__fuzz_31 WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WHERE clear_column__fuzz_31 WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_31' in scope SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WHERE clear_column__fuzz_31 WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 38 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 39 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 41 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 46 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 47 out of 1000 SELECT round(avg(log(toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 2), 2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 2), 2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(toLowCardinality(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 2), 2) * number) IGNORE NULLS, toLowCardinality(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 48 out of 1000 SELECT round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)), avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)), avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)), avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 49 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS, toLowCardinality(6)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS, toLowCardinality(6)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 51 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(63, 6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(63, 6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(63, 6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 52 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 53 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 54 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 55 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 57 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 59 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 60 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 63 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE 2147483648 WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE 2147483648 WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 65 out of 1000 SELECT round(avg(log(materialize(3), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(3), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(materialize(3), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 66 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toDateTime(tupleElement(time, toLowCardinality(1))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, toDateTime(tupleElement(time, toLowCardinality(1))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number) IGNORE NULLS, toDateTime(tupleElement(time, toLowCardinality(1))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 68 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS FIRST Got boring AST Fuzzing step 70 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS FIRST Got boring AST Fuzzing step 71 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toNullable(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 79 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 2)) ASC, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 2)) ASC, k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 82 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 83 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 86 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC Got boring AST Fuzzing step 87 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k ASC Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 SELECT round(avg(multiply(toFixedString('ok', toNullable(toUInt128(2))), log(toLowCardinality(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC Error on processing query 'SELECT round(avg(multiply(toFixedString('ok', toNullable(toUInt128(2))), log(toLowCardinality(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(toFixedString('ok', toNullable(toUInt128(2))), log(toLowCardinality(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 90 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC Got boring AST Fuzzing step 92 out of 1000 EXPLAIN PIPELINE header = true SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 93 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) DESC, k DESC Got boring AST Fuzzing step 95 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, clear_column__fuzz_17 DESC, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, clear_column__fuzz_17 DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_17' in scope SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, clear_column__fuzz_17 DESC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 100 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC NULLS LAST Got boring AST Fuzzing step 102 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC NULLS LAST Got boring AST Fuzzing step 103 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC Got boring AST Fuzzing step 106 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, toFixedString('second', 6) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) DESC, k DESC NULLS LAST Got boring AST Fuzzing step 110 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 SELECT round(avg(multiply(toString(toNullable(toUInt256(2)), materialize(57), POWER(POW(3, materialize(2))), time), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(avg(multiply(toString(toNullable(toUInt256(2)), materialize(57), POWER(POW(3, materialize(2))), time), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(toString(toNullable(toUInt256(2)), materialize(57), POWER(POW(3, materialize(2))), time), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 112 out of 1000 SELECT round(avg(log(POWER(toLowCardinality(materialize(3)), toLowCardinality(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(POWER(toLowCardinality(materialize(3)), toLowCardinality(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(POWER(toLowCardinality(materialize(3)), toLowCardinality(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 113 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, toFixedString('second', 6) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, toFixedString('second', 6) ASC, k DESC 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 115 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 117 out of 1000 SELECT round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toUInt128(57)), materialize(power(toLowCardinality(3), 3, 2), 3) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toUInt128(57)), materialize(power(toLowCardinality(3), 3, 2), 3) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toUInt128(57)), materialize(power(toLowCardinality(3), 3, 2), 3) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS LAST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 118 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 119 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 120 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 122 out of 1000 SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(materialize(toNullable(3)))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS LAST, k DESC Error on processing query 'SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(materialize(toNullable(3)))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(materialize(toNullable(3)))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS LAST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 123 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, toFixedString('second', 6) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT round(avg(toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, toFixedString('second', 6) DESC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, toFixedString('second', 6) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(avg(toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, toFixedString('second', 6) DESC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 128 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) DESC, k 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 129 out of 1000 SELECT round(avg(multiply(log(2), POWER(materialize(toLowCardinality(2)), 3), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) DESC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(2), POWER(materialize(toLowCardinality(2)), 3), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) DESC NULLS FIRST, k 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 SELECT round(avg(multiply(log(2), POWER(materialize(toLowCardinality(2)), 3), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) DESC NULLS FIRST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 130 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 134 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 135 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 136 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 137 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 138 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 139 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 142 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 143 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 144 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 145 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 147 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 149 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 151 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 153 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 154 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 155 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 156 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 157 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 158 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, materialize(toLowCardinality(2)) ASC, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, materialize(toLowCardinality(2)) ASC, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 159 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 160 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 161 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second'. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 162 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 163 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 164 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 165 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second'. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 166 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 167 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 169 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 173 out of 1000 SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k 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 SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, toFixedString('second', 6) ASC NULLS FIRST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 174 out of 1000 SELECT round(avg(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(POWER(2, 3), if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)), time), 0), 'ok', toString(2)), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(POWER(2, 3), if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)), time), 0), 'ok', toString(2)), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toString(POWER(2, 3), if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), toLowCardinality(2)), time)), time), 0), 'ok', toString(2)), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 175 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, toFixedString('second', 6) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 177 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 179 out of 1000 SELECT round(avg(log(materialize(toNullable(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT round(avg(log(materialize(toNullable(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS LAST Got boring AST Fuzzing step 181 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(toUInt128(2)))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString(. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 184 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) DESC NULLS LAST, k ASC Error on processing query 'SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) DESC NULLS LAST, k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 185 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC Got boring AST Fuzzing step 186 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 192 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 196 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 197 out of 1000 EXPLAIN SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString(. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 199 out of 1000 EXPLAIN AST SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 200 out of 1000 SELECT round(avg(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, 3), time)), log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS LAST, k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 201 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString(. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 203 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 204 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 205 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 206 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 208 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 209 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 210 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 211 out of 1000 SELECT round(avg(log(toNullable(materialize(toLowCardinality(2)))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 214 out of 1000 SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(0), clear_column__fuzz_12 WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(0), clear_column__fuzz_12 WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_12' in scope SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(0), clear_column__fuzz_12 WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS LAST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 218 out of 1000 SELECT round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT round(avg(multiply(log(2), materialize('ok'), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(2), materialize('ok'), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k 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 SELECT round(avg(multiply(log(2), materialize('ok'), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC NULLS FIRST, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 221 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS LAST Got boring AST Fuzzing step 223 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) DESC, k DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 224 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('second', 6) ASC, k DESC NULLS LAST Got boring AST Fuzzing step 225 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 227 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 229 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 230 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 231 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 232 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 233 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toUInt128(toUInt128(2)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toUInt128(toUInt128(2)) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 234 out of 1000 SELECT round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 SELECT round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 236 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 238 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE materialize(2) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE materialize(2) WITH TOTALS ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 240 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 241 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 242 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 244 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 245 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 246 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 247 out of 1000 SELECT round(avg(log(toUInt128(materialize(toNullable(2)))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT round(avg(log(materialize(toNullable(2))) * number) RESPECT NULLS) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(toNullable(2))) * number) RESPECT NULLS) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 249 out of 1000 SELECT round(avg(log(toUInt128(materialize(toNullable(2)))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 250 out of 1000 SELECT round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 SELECT round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 SELECT round(avg(multiply(tupleElement(time, toLowCardinality(1)), log(toNullable(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(tupleElement(time, toLowCardinality(1)), log(toNullable(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(multiply(tupleElement(time, toLowCardinality(1)), log(toNullable(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 254 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 257 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(sleep(toLowCardinality(2)), 2)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(sleep(toLowCardinality(2)), 2)) WITH TOTALS ORDER BY k 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 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(sleep(toLowCardinality(2)), 2)) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780e86c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 258 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 259 out of 1000 SELECT round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 262 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 263 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(3), 10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(3), 10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 265 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 266 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 267 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 269 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toString(toUInt128(57), POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(toUInt128(2))), time)), toNullable(toNullable(3)), 2), time) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toString(toUInt128(57), POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(toUInt128(2))), time)), toNullable(toNullable(3)), 2), time) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toString(toUInt128(57), POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toUInt256(2))))) = 0, 'ok', toString(POW(toLowCardinality(toUInt128(2))), time)), toNullable(toNullable(3)), 2), time) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 270 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 272 out of 1000 SELECT round(avg(log(toNullable(toUInt256(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 277 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE materialize('01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE materialize('01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k 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 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE materialize('01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 278 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 279 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, clear_column__fuzz_41 ASC, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, clear_column__fuzz_41 ASC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_41' in scope SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, clear_column__fuzz_41 ASC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 280 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 281 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 284 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 285 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 286 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 288 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 289 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 291 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 292 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 293 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 295 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 296 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 297 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 298 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 300 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 301 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 302 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 304 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 305 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 306 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 307 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 310 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 316 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(FixedString(56)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 317 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 318 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 319 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 320 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 SELECT round(avg(log(POWER(toNullable(3), toNullable(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(POWER(toNullable(3), toNullable(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(POWER(toNullable(3), toNullable(2)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 324 out of 1000 EXPLAIN QUERY TREE run_passes = true, passes = true SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(2) * number) IGNORE NULLS) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE run_passes = true, passes = true SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(2) * number) IGNORE NULLS) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 325 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST Got boring AST Fuzzing step 326 out of 1000 SELECT round(avg(multiply(log(2), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(2), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k 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 SELECT round(avg(multiply(log(2), toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 327 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT power(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(materialize(3))) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Error on processing query 'SELECT power(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(materialize(3))) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(materialize(3))) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 329 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 330 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 331 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 332 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 333 out of 1000 SELECT power(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Error on processing query 'SELECT power(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 334 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time)) ASC, k DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time)) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality(toFixedString(2)), toString(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), time)) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 335 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 336 out of 1000 SELECT power(3, toFixedString(toNullable('ok'), toUInt128(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST Error on processing query 'SELECT power(3, toFixedString(toNullable('ok'), toUInt128(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, toFixedString(toNullable('ok'), toUInt128(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 337 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 SELECT power(3, toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT power(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), 3, toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC Error on processing query 'SELECT power(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), 3, toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(toFixedString(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(56)), 3, toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 341 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(2) * number)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC Error on processing query 'SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(2) * number)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC': Received from localhost:9000. DB::Exception: Aggregate function avg(log(2) * number) is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 343 out of 1000 SELECT power(3, 2), round(avg(multiply(number)) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC Error on processing query 'SELECT power(3, 2), round(avg(multiply(number)) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), round(avg(multiply(number)) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 344 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 347 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 349 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 351 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 352 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 353 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 354 out of 1000 EXPLAIN SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 357 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 359 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 360 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 361 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 363 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 364 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 365 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 366 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 367 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 368 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 370 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 371 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 372 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 373 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 374 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 377 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 378 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 379 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 381 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 383 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 384 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 385 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 386 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 389 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 390 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 391 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 392 out of 1000 EXPLAIN AST SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 EXPLAIN SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 395 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 396 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 397 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 399 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 400 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 401 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 402 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 403 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(0)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 404 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, materialize(toNullable(3))), toNullable(toNullable(toUInt256(0))) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY POWER(2, materialize(toNullable(clear_column__fuzz_10, 3))), toNullable(toNullable(toUInt256(0))) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT power(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY POWER(2, materialize(toNullable(clear_column__fuzz_10, 3))), toNullable(toNullable(toUInt256(0))) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 406 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), materialize(toNullable(3))), toNullable(toNullable(toUInt256(0))) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 407 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), materialize(toNullable(3))), toNullable(toNullable(0)) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), materialize(3)), toNullable(toNullable(0)) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2))), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC Error on processing query 'SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2))), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2))), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 410 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), materialize(3)), toNullable(toNullable(0)) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT power(3, 2), round(pow(toLowCardinality(3), toLowCardinality(pow(power(toLowCardinality(3), 3, toNullable(2)), 3, toNullable(2)), 2)), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(toLowCardinality(2), materialize(3)), toNullable(toNullable(0)) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k DESC Error on processing query 'SELECT power(3, 2), round(pow(toLowCardinality(3), toLowCardinality(pow(power(toLowCardinality(3), 3, toNullable(2)), 3, toNullable(2)), 2)), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(toLowCardinality(2), materialize(3)), toNullable(toNullable(0)) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), round(pow(toLowCardinality(3), toLowCardinality(pow(power(toLowCardinality(3), 3, toNullable(2)), 3, toNullable(2)), 2)), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(toLowCardinality(2), materialize(3)), toNullable(toNullable(0)) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 412 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), materialize(3)), toNullable(toNullable(0)) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), materialize(3)), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)), toLowCardinality(2)), materialize(3)), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)), toLowCardinality(2)), materialize(3)), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)), toLowCardinality(2)), materialize(3)), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 415 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), 3), 0 WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k DESC Error on processing query 'SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), 3), 0 WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(2)), 3), 0 WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 416 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(2), materialize(3)), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(2), materialize(3)), toNullable(0) WITH CUBE WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC, k DESC Got boring AST Fuzzing step 418 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT power(3, 2), round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) 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 SELECT power(3, 2), round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 420 out of 1000 SELECT power(3, 2), toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(3)), time), round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(toNullable(2))), 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT power(3, 2), toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(3)), time), round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(toNullable(2))), 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(3)), time), round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(materialize(toLowCardinality(toNullable(2))), 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 421 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 422 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 423 out of 1000 SELECT power(3, 2), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 424 out of 1000 SELECT power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT power(toNullable(3), 2) FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT power(toNullable(3), 2) FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT power(toNullable(3), 2) FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 426 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 428 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, 3), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 429 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, 3), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 430 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) ASC Error on processing query 'SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 432 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT round(POW(3, materialize(toNullable(2))), max(log(toUInt256(2)) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(toUInt256(3))), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT round(POW(3, materialize(toNullable(2))), max(log(toUInt256(2)) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(toUInt256(3))), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': 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(POW(3, materialize(toNullable(2))), max(log(toUInt256(2)) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(toUInt256(3))), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 434 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) ASC Error on processing query 'SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 435 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 436 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 437 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 438 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 439 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 441 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 442 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 445 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 446 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 449 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 450 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 451 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 452 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(materialize(3))), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(materialize(3))), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 2]. In scope SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(materialize(3))), 0 WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 453 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 454 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 455 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 457 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 458 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 459 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 461 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 462 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 464 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 465 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 466 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 467 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 468 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 471 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 473 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 474 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 476 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 478 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 479 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 481 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 482 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 483 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 484 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 486 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 488 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 489 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 491 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 492 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 493 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 495 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 497 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 499 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 500 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 501 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 503 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 504 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 505 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 506 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 507 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 508 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 EXPLAIN AST SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 511 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 513 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 515 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 516 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 518 out of 1000 EXPLAIN SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 519 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 523 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 524 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 525 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 527 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(materialize(toNullable(10000000))) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(materialize(toNullable(10000000))) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 528 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(toLowCardinality(toNullable(3)))), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number)), power(3, 2) FROM numbers(10000000) GROUP BY POWER(toUInt128(2), toNullable(toLowCardinality(toNullable(3)))), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT round(max(log(toNullable(toUInt256(2))) * number)), power(3, 2) FROM numbers(10000000) GROUP BY POWER(toUInt128(2), toNullable(toLowCardinality(toNullable(3)))), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT round(max(log(toNullable(toUInt256(2))) * number)), power(3, 2) FROM numbers(10000000) GROUP BY POWER(toUInt128(2), toNullable(toLowCardinality(toNullable(3)))), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 530 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(toNullable(3))), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) GROUP BY POWER(2, toNullable(3)), toNullable(0) WITH CUBE ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT round(POWER(toLowCardinality(2), materialize(toNullable(3))), max(multiply(log(toNullable(toUInt256(2))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT round(POWER(toLowCardinality(2), materialize(toNullable(3))), max(multiply(log(toNullable(toUInt256(2))), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(POWER(toLowCardinality(2), materialize(toNullable(3))), max(multiply(log(toNullable(toUInt256(2))), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(3, 2)), time)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 534 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 535 out of 1000 SELECT round(max(log(toNullable(toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT round(max(log(toNullable(pow(toNullable(3), toNullable(toNullable(2))), toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY 18 ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(toNullable(pow(toNullable(3), toNullable(toNullable(2))), toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY 18 ASC, toFixedString('ok', toNullable(2)) 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 round(max(log(toNullable(pow(toNullable(3), toNullable(toNullable(2))), toUInt256(2))) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY 18 ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 537 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) PREWHERE POW(materialize(3), 2) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) PREWHERE POW(materialize(3), 2) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 EXPLAIN `header, description` = true, json = true SELECT round(max(multiply(toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time), log(toNullable(2)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'EXPLAIN `header, description` = true, json = true SELECT round(max(multiply(toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time), log(toNullable(2)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 540 out of 1000 SELECT round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 2) FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), power(3, toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 2) FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(max(log(2) * number) IGNORE NULLS), power(3, toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 2) FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(time.2)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 545 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 546 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 547 out of 1000 SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)), number)) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 548 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), power(3) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(max(log(2) * number) IGNORE NULLS), power(3) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 550 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 551 out of 1000 SELECT round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY toLowCardinality(toUInt128(57)), toUInt128(materialize(57)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY toLowCardinality(toUInt128(57)), toUInt128(materialize(57)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY toLowCardinality(toUInt128(57)), toUInt128(materialize(57)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 552 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY numbers(10000000) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY numbers(10000000) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY numbers(10000000) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 553 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 554 out of 1000 SELECT round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), log(2) * number) IGNORE NULLS), power(2) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT round(max(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), log(2) * number) IGNORE NULLS), power(2) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 555 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 556 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 557 out of 1000 EXPLAIN PIPELINE header = true SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 558 out of 1000 SELECT toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 SELECT toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 562 out of 1000 SELECT toNullable(toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2))), 3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT toNullable(toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2))), 3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT toNullable(toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2))), 3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 563 out of 1000 SELECT toNullable(3), round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT toNullable(3), round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT toNullable(3), round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 564 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 569 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 570 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 571 out of 1000 SELECT 3, round(max(if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(toLowCardinality(toNullable(0)), time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)), log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, round(max(if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(toLowCardinality(toNullable(0)), time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)), log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(max(if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(toLowCardinality(toNullable(0)), time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)), log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 572 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(toUInt128(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(toUInt128(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(toUInt128(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 573 out of 1000 SELECT 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 574 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 576 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 577 out of 1000 EXPLAIN `header, description` = true SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'EXPLAIN `header, description` = true SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 578 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 579 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toLowCardinality(toUInt128(10000000))) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toLowCardinality(toUInt128(10000000))) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 580 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 581 out of 1000 SELECT 3, 3, round(max(multiply(if(equals(dateDiff(toDateTime(power(toLowCardinality(3), 3, materialize(2)), tupleElement(toUInt256(63), time, 1)), toDateTime(time.2))), 'ok', toString(toString(toLowCardinality(57), POWER(3, 2), time), POWER(POW(2)), time)), log(2), number)) RESPECT NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(multiply(if(equals(dateDiff(toDateTime(power(toLowCardinality(3), 3, materialize(2)), tupleElement(toUInt256(63), time, 1)), toDateTime(time.2))), 'ok', toString(toString(toLowCardinality(57), POWER(3, 2), time), POWER(POW(2)), time)), log(2), number)) RESPECT NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, 3, round(max(multiply(if(equals(dateDiff(toDateTime(power(toLowCardinality(3), 3, materialize(2)), tupleElement(toUInt256(63), time, 1)), toDateTime(time.2))), 'ok', toString(toString(toLowCardinality(57), POWER(3, 2), time), POWER(POW(2)), time)), log(2), number)) RESPECT NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 Fuzzing step 582 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 584 out of 1000 SELECT 3, toUInt256(3), round(toString(toNullable(toUInt128(57)), time), max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, toUInt256(3), round(toString(toNullable(toUInt128(57)), time), max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toUInt256(3), round(toString(toNullable(toUInt128(57)), time), max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 585 out of 1000 SELECT 3, toUInt256(3), round(max(log(2) * number)), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, toUInt256(3), round(max(log(2) * number)), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, toUInt256(3), round(max(log(2) * number)), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 586 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT 3, 3, round(max(POWER(3, toLowCardinality(2)), multiply(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), log(2), number))), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(POWER(3, toLowCardinality(2)), multiply(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), log(2), number))), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 3, round(max(POWER(3, toLowCardinality(2)), multiply(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), log(2), number))), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 588 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, clear_column__fuzz_44, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(2) * number)), power(3, clear_column__fuzz_44, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_44' in scope SELECT 3, 3, round(max(log(2) * number)), power(3, clear_column__fuzz_44, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 589 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 590 out of 1000 SELECT 3, 3, round(256, max(log(materialize(toLowCardinality(toNullable(2)))) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(256, max(log(materialize(toLowCardinality(toNullable(2)))) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST': 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 3, 3, round(256, max(log(materialize(toLowCardinality(toNullable(2)))) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 591 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 592 out of 1000 SELECT toLowCardinality(3), 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 EXPLAIN QUERY TREE passes = true SELECT toLowCardinality(3), 3, round(max(multiply(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), log(2), number))), power(3, toLowCardinality(toUInt256(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT toLowCardinality(3), 3, round(max(multiply(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), log(2), number))), power(3, toLowCardinality(toUInt256(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 594 out of 1000 SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, toNullable(3), round(max(log(2) * number)), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, toNullable(3), round(max(log(2) * number)), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 597 out of 1000 SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Got boring AST Fuzzing step 598 out of 1000 SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Got boring AST Fuzzing step 599 out of 1000 SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WHERE POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WHERE POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WHERE POWER(POW(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3, 2), 2) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 600 out of 1000 SELECT toLowCardinality(3), toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Got boring AST Fuzzing step 601 out of 1000 SELECT toLowCardinality(3), toNullable(3), round(max(multiply(log(2), toLowCardinality(toNullable(2)), number))), power(3, 2) FROM numbers(10000000) WHERE toNullable('01473_query_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT toLowCardinality(3), toNullable(3), round(max(multiply(log(2), toLowCardinality(toNullable(2)), number))), power(3, 2) FROM numbers(10000000) WHERE toNullable('01473_query_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) 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 SELECT toLowCardinality(3), toNullable(3), round(max(multiply(log(2), toLowCardinality(toNullable(2)), number))), power(3, 2) FROM numbers(10000000) WHERE toNullable('01473_query_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 602 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 EXPLAIN PIPELINE header = true SELECT 3, 3, round(max(log(materialize(toLowCardinality(2))) * number)), power(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT 3, 3, round(max(log(materialize(toLowCardinality(2))) * number)), power(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 605 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Got boring AST Fuzzing step 606 out of 1000 SELECT 3, 3, round(max(log(2) * number) RESPECT NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Error on processing query 'SELECT 3, 3, round(max(log(2) * number) RESPECT NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 607 out of 1000 SELECT 3, 3, round(max(pow(3, materialize(2)), log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(pow(3, materialize(2)), log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 608 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(toNullable(57), toNullable(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Error on processing query 'SELECT 3, 3, round(max(log(2) * number)), power(toNullable(57), toNullable(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, 3, round(max(log(2) * number)), power(toNullable(57), toNullable(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 609 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT 3, 3, round(max(log(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 2) * number)), power(3, 2) FROM numbers(10000000) PREWHERE toNullable(toLowCardinality(3)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(log(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 2) * number)), power(3, 2) FROM numbers(10000000) PREWHERE toNullable(toLowCardinality(3)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, 3, round(max(log(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 2) * number)), power(3, 2) FROM numbers(10000000) PREWHERE toNullable(toLowCardinality(3)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 611 out of 1000 SELECT 3, 3, round(max(log(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), 2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(log(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), 2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 3, round(max(log(dateDiff('second', toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), 2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 612 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 613 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 614 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 3, round(max(multiply(number))), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 3, round(max(multiply(number))), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('3'): 3, 3, round(max(multiply(number))), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 615 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT 3, 3, power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 617 out of 1000 SELECT toLowCardinality(3), 3, round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 618 out of 1000 SELECT toLowCardinality(3), 3, round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 621 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT 3, toNullable(3), round(max(multiply(MergeTree, log(2), number))), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY pow(toNullable(3), toNullable(toNullable(2))) ASC, toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, toNullable(3), round(max(multiply(MergeTree, log(2), number))), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY pow(toNullable(3), toNullable(toNullable(2))) ASC, toFixedString('ok', toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'MergeTree' in scope SELECT 3, toNullable(3), round(max(multiply(MergeTree, log(2), number))), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY pow(toNullable(3), toNullable(toNullable(2))) ASC, toFixedString('ok', toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 623 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, 'ok', toString(time)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 625 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toNullable(3), round(max(log(2) * number)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, if(power(toNullable(3), toLowCardinality(2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)), 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2), time)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 626 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(power(toLowCardinality(3), toNullable(3), materialize(2)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT 3, 3, round(max(log(2) * number)), power(power(toLowCardinality(3), toNullable(3), materialize(2)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, 3, round(max(log(2) * number)), power(power(toLowCardinality(3), toNullable(3), materialize(2)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 629 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 631 out of 1000 SELECT 3, 3, round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 632 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 634 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number)), power(3, 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(3), round(max(log(2) * number)), power(3, 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, toLowCardinality(3), round(max(log(2) * number)), power(3, 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 635 out of 1000 SELECT 3, toLowCardinality(toUInt128(3)), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT 3, toLowCardinality(toUInt128(3)), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Got boring AST Fuzzing step 637 out of 1000 SELECT 3, toLowCardinality(toUInt128(3)), round(max(log(2) * number)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) ASC Got boring AST Fuzzing step 638 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 640 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 641 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 642 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 643 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 646 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toLowCardinality(2)))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toLowCardinality(toString(POW(POW(toLowCardinality(3), 2), 2)), 2)))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toLowCardinality(toString(POW(POW(toLowCardinality(3), 2), 2)), 2)))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) 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 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toLowCardinality(toString(POW(POW(toLowCardinality(3), 2), 2)), 2)))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 648 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toLowCardinality(2)))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 649 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 651 out of 1000 SELECT 3, 3, round(max(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 652 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 653 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), toLowCardinality(57)), 2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 654 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 655 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 656 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 657 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(materialize(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 658 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 660 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 661 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 662 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 665 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 666 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC Got boring AST Fuzzing step 668 out of 1000 SELECT 3, 3, round(max(log(materialize(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY materialize(toNullable('ok', 2)), 65536, if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(toNullable(2))), time)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(toUInt256(2)))))) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) ASC Error on processing query 'SELECT 3, 3, round(max(log(materialize(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY materialize(toNullable('ok', 2)), 65536, if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(toNullable(2))), time)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(toUInt256(2)))))) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Positional argument number 65536 is out of bounds. Expected in range [1, 4]. In scope SELECT 3, 3, round(max(log(materialize(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY materialize(toNullable('ok', 2)), 65536, if(dateDiff('second', toDateTime(time.1)) = 0, 'ok', toString(toNullable(toUInt256(toNullable(2))), time)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(toUInt256(2)))))) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 669 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN PIPELINE SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 673 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 674 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 675 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 676 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 678 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 679 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 680 out of 1000 EXPLAIN AST SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 681 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 683 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 684 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('3'): 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) AS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 685 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 687 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 688 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 SELECT 3, toLowCardinality(3), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(3), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(2, 57, POWER(materialize(2), 3), time)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toString(2, 57, POWER(POW(3, toUInt256(2))), time) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(2, 57, POWER(materialize(2), 3), time)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toString(2, 57, POWER(POW(3, toUInt256(2))), time) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(2, 57, POWER(materialize(2), 3), time)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toString(2, 57, POWER(POW(3, toUInt256(2))), time) ASC, toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 691 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT 3, 3, round(max(multiply(number)) IGNORE NULLS), power(3, POWER(POW(3, 2), 2, materialize(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT 3, 3, round(max(multiply(number)) IGNORE NULLS), power(3, POWER(POW(3, 2), 2, materialize(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, 3, round(max(multiply(number)) IGNORE NULLS), power(3, POWER(POW(3, 2), 2, materialize(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 693 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 697 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('3'): 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) AS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 698 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT 3, toLowCardinality(round(max(log(toLowCardinality(2)) * number)), 3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(pow(materialize(power(toLowCardinality(materialize(toUInt256(3))), 3, 2), 3), 2), 3)), materialize('01473_trace_log_table_event_start_time_microseconds_test'), 2) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(round(max(log(toLowCardinality(2)) * number)), 3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(pow(materialize(power(toLowCardinality(materialize(toUInt256(3))), 3, 2), 3), 2), 3)), materialize('01473_trace_log_table_event_start_time_microseconds_test'), 2) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 706 out of 1000 SELECT 3, toLowCardinality(3), clear_column__fuzz_22, round(max(log(2) * number) IGNORE NULLS), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC Error on processing query 'SELECT 3, toLowCardinality(3), clear_column__fuzz_22, round(max(log(2) * number) IGNORE NULLS), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_22' in scope SELECT 3, toLowCardinality(3), clear_column__fuzz_22, round(max(log(2) * number) IGNORE NULLS), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 707 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), toNullable(toUInt256(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), toNullable(toUInt256(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), toNullable(toUInt256(2))) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 708 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 709 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time), POWER(2, materialize(3)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time), POWER(2, materialize(3)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) GROUP BY toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time), POWER(2, materialize(3)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 712 out of 1000 EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) RESPECT NULLS), power(3, toUInt128(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT 3, toLowCardinality(3), round(max(log(2) * number) RESPECT NULLS), power(3, toUInt128(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS: While processing SELECT 3, toLowCardinality(3), round(max(log(2) * number) RESPECT NULLS), pow(3, toUInt128(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:586: DB::ExpressionAnalyzer::makeAggregateDescriptions(DB::ActionsDAG&, std::vector>&) @ 0x0000000017727725 8. ./build_docker/./src/Interpreters/ExpressionAnalyzer.cpp:0: DB::ExpressionAnalyzer::analyzeAggregation(DB::ActionsDAG&) @ 0x000000001772384b 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::ExpressionAnalyzer::ExpressionAnalyzer(std::shared_ptr const&, std::shared_ptr const&, std::shared_ptr, unsigned long, bool, bool, std::shared_ptr, bool) @ 0x00000000177227aa 10. ./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) @ 0x0000000017dcfe78 11. ./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 @ 0x0000000017db0c6e 12. ./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) @ 0x0000000017daa783 13. ./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) @ 0x0000000017da634c 14. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 16. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 17. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 18. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 713 out of 1000 SELECT 3, toLowCardinality(3), round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, toLowCardinality(3), round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, toLowCardinality(3), round(max(multiply(log(2))) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 714 out of 1000 SELECT 3, toLowCardinality(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT materialize(3), 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT materialize(3), 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT materialize(3), 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 720 out of 1000 SELECT materialize(3), 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 721 out of 1000 SELECT materialize(3), 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT materialize(3), 3, round(max(log(1025, 2) * number) IGNORE NULLS), power(3, materialize(toNullable(toLowCardinality(2))), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) ASC Error on processing query 'SELECT materialize(3), 3, round(max(log(1025, 2) * number) IGNORE NULLS), power(3, materialize(toNullable(toLowCardinality(2))), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT materialize(3), 3, round(max(log(1025, 2) * number) IGNORE NULLS), power(3, materialize(toNullable(toLowCardinality(2))), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 723 out of 1000 SELECT materialize(3), 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT materialize(3), 3, round(max(log(2) * number) IGNORE NULLS), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 727 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 728 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 729 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(materialize(0)), toNullable(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(materialize(0)), toNullable(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(materialize(0)), toNullable(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 731 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(3)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(3)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(3)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 732 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(toNullable(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST, toFixedString('ok', toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 734 out of 1000 SELECT 3, toUInt128(toLowCardinality(toLowCardinality(2))), 3, round(max(log(round(avg(multiply(clear_column__fuzz_3, log(toUInt256(2)), number))), 2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT 3, toUInt128(toLowCardinality(toLowCardinality(2))), 3, round(max(log(round(avg(multiply(clear_column__fuzz_3, log(toUInt256(2)), number))), 2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_3' in scope SELECT 3, toUInt128(toLowCardinality(toLowCardinality(2))), 3, round(max(log(round(avg(multiply(clear_column__fuzz_3, log(toUInt256(2)), number))), 2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 735 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Got boring AST Fuzzing step 736 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Got boring AST Fuzzing step 737 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Got boring AST Fuzzing step 738 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Got boring AST Fuzzing step 739 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 EXPLAIN AST graph = true SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY materialize(toLowCardinality(toNullable(2))) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'EXPLAIN AST graph = true SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY materialize(toLowCardinality(toNullable(2))) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 741 out of 1000 SELECT 3, toNullable(3), round(max(log(toLowCardinality(6), 2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 3, toNullable(3), round(max(log(toLowCardinality(6), 2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, toNullable(3), round(max(log(toLowCardinality(6), 2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 742 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toInt256(1048576), 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(toInt256(1048576), 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Int256 expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 743 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Got boring AST Fuzzing step 744 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(toNullable(3)), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT 3, toNullable(3), round(max(log(2) * number) IGNORE NULLS), power(materialize(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(materialize(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT toLowCardinality(3), 3, round(max(log(2) * number) RESPECT NULLS), power(materialize(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT toLowCardinality(3), 3, round(max(log(2) * number) RESPECT NULLS), power(materialize(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 750 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(materialize(3), toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 751 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(materialize(3), 2) FROM numbers(1048576, round(max(log(materialize(toLowCardinality(toNullable(2)))) * number) RESPECT NULLS), 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(materialize(3), 2) FROM numbers(1048576, round(max(log(materialize(toLowCardinality(toNullable(2)))) * number) RESPECT NULLS), 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max(multiply(log(materialize(_CAST(2, 'LowCardinality(Nullable(UInt8))'))), number)) RESPECT NULLS is found in wrong place in query: While processing max(log(materialize(_CAST(2, 'LowCardinality(Nullable(UInt8))'))) * number) RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752319 7. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 8. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863e2 9. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 10. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 11. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 12. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 13. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 14. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 752 out of 1000 SELECT 3, 3, round(max(log(toUInt128(2)) * number) IGNORE NULLS), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 SELECT 3, 3, round(max(log(toNullable(power(toNullable(3), 2), 2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(toNullable(power(toNullable(3), 2), 2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) 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 3, 3, round(max(log(toNullable(power(toNullable(3), 2), 2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 756 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(toNullable(1048576), 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(toNullable(1048576), 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 758 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, materialize(toLowCardinality(2))) FROM numbers(clear_column__fuzz_25, 1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, materialize(toLowCardinality(2))) FROM numbers(clear_column__fuzz_25, 1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'clear_column__fuzz_25' while processing query: 'clear_column__fuzz_25', required columns: 'clear_column__fuzz_25' 'clear_column__fuzz_25'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 759 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 760 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(toLowCardinality(3), 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(toLowCardinality(3), 2), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(toLowCardinality(3), 2), power(3, 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 762 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(toLowCardinality(3), 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) GROUP BY POWER(toNullable(2), 3), if(dateDiff('second', toDateTime(tupleElement(toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(toLowCardinality(3), 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) GROUP BY POWER(toNullable(2), 3), if(dateDiff('second', toDateTime(tupleElement(toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(toLowCardinality(3), 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) GROUP BY POWER(toNullable(2), 3), if(dateDiff('second', toDateTime(tupleElement(toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)), time, 1)), toDateTime(time.2)) = materialize(0), 'ok', toString(2)) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 763 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(toLowCardinality(3), 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toNullable(2)), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY -2147483648 ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY -2147483648 ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Negative positional argument number -2147483648 is out of bounds. Expected in range [-5, -1]. In scope SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY -2147483648 ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, long&, unsigned long&&, String&&) @ 0x000000001751fe4c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f317a 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de0ae 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toNullable(materialize(toLowCardinality(2)))), power(toLowCardinality(3), 2) FROM numbers(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), 1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toNullable(materialize(toLowCardinality(2)))), power(toLowCardinality(3), 2) FROM numbers(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), 1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 768 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toNullable(2)), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toNullable(2)), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY MergeTree DESC, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toNullable(2)), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY MergeTree DESC, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'MergeTree' in scope SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toNullable(2)), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY MergeTree DESC, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 770 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, 2), time)), materialize(toUInt256(63)), log(pow(toLowCardinality(3), 2), materialize(2)) * number WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) GROUP BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, 2), time)), materialize(toUInt256(63)), log(pow(toLowCardinality(3), 2), materialize(2)) * number WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(3), 2) FROM numbers(1048576, 10000000) GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, 2), time)), materialize(toUInt256(63)), log(pow(toLowCardinality(3), 2), materialize(2)) * number WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 771 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(toNullable(2))) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(toNullable(2))) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Got boring AST Fuzzing step 773 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(toNullable(2))) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(toNullable(2))) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(toLowCardinality(toNullable(2))) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 774 out of 1000 SELECT 3, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Got boring AST Fuzzing step 777 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WHERE POW(3, materialize(materialize(toLowCardinality(2)))) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT 3, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WHERE POW(3, materialize(materialize(toLowCardinality(2)))) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) of column pow(3_UInt8, materialize(materialize(_CAST(2_LowCardinality(UInt8), 'LowCardinality(UInt8)'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 779 out of 1000 SELECT 3, 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT 3, 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT 3, 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 SELECT 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 SELECT 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 784 out of 1000 SELECT 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 SELECT 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 786 out of 1000 SELECT 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(materialize(toUInt128(2)))) FROM numbers(1048576, materialize(10000000)) WHERE toNullable(toLowCardinality(3)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(materialize(toUInt128(2)))) FROM numbers(1048576, materialize(10000000)) WHERE toNullable(toLowCardinality(3)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) DESC 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 787 out of 1000 SELECT 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 788 out of 1000 SELECT 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(1048576, 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT toNullable(3), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT toNullable(3), round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(10000000) PREWHERE pow(power(3, 2), 3, toUInt128(2)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT toNullable(3), round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(10000000) PREWHERE pow(power(3, 2), 3, toUInt128(2)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable(3), round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(10000000) PREWHERE pow(power(3, 2), 3, toUInt128(2)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 792 out of 1000 SELECT toNullable(3), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Got boring AST Fuzzing step 793 out of 1000 SELECT toNullable(3), round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS), 2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT toNullable(3), round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS), 2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) 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 toNullable(3), round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS), 2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 794 out of 1000 SELECT toNullable(3), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(toNullable(2))) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT toNullable(3), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toLowCardinality(toNullable(2))) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 SELECT toNullable(3), round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT toNullable(3), round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 SELECT toNullable(3), round(max(log(materialize(pow(3, materialize(toNullable(2))), 2)) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT toNullable(3), round(max(log(materialize(pow(3, materialize(toNullable(2))), 2)) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) 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 SELECT toNullable(3), round(max(log(materialize(pow(3, materialize(toNullable(2))), 2)) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 799 out of 1000 SELECT toNullable(3), round(max(log(materialize(2)) * number) IGNORE NULLS), MergeTree, power(3, 2) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT toNullable(3), round(max(log(materialize(2)) * number) IGNORE NULLS), MergeTree, power(3, 2) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 800 out of 1000 SELECT toNullable(3), round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 801 out of 1000 SELECT 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(materialize(3), toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT log(materialize(toNullable(2))), 3, round(max(log(materialize(2)) * number) IGNORE NULLS), pow(3, 2), power(materialize(3), toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 SELECT log(materialize(toNullable(2))), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 804 out of 1000 SELECT toNullable(56), log(materialize(toNullable(2))), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT toNullable(56), log(materialize(toNullable(2))), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 806 out of 1000 SELECT toNullable(56), log(materialize(toNullable(2))), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 SELECT toNullable(56), log(toNullable(2)), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT toNullable(56), log(toNullable(2)), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 809 out of 1000 SELECT toNullable(56), log(toNullable(2)), toLowCardinality(3), round(round(avg(log(2) * number) IGNORE NULLS), max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT toNullable(56), log(toNullable(2)), toLowCardinality(3), round(round(avg(log(2) * number) IGNORE NULLS), max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST': 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 toNullable(56), log(toNullable(2)), toLowCardinality(3), round(round(avg(log(2) * number) IGNORE NULLS), max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, toNullable(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 810 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 812 out of 1000 SELECT toNullable(56), log(2), 3, round(max(2, log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT toNullable(56), log(2), 3, round(max(2, log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 813 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2), 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2), 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2), 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 814 out of 1000 EXPLAIN QUERY TREE passes = true SELECT 56, log(2), 3, round(max(multiply(log(2))) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT 56, log(2), 3, round(max(multiply(log(2))) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 815 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 816 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT toNullable(56), log(event_time, 2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT toNullable(56), log(event_time, 2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'event_time' in scope SELECT toNullable(56), log(event_time, 2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 818 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 819 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 821 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 EXPLAIN AST SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 EXPLAIN SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 828 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toNullable'): toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) W. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 829 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 830 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 832 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toNullable'): toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) W. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 833 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 835 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toNullable'): toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) W. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 836 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 838 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 839 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 840 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 841 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 842 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 843 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 846 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 847 out of 1000 EXPLAIN AST SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 EXPLAIN AST SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 849 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toNullable'): toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) W. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 850 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 EXPLAIN SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 EXPLAIN AST SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 EXPLAIN AST SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 855 out of 1000 EXPLAIN SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 857 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 860 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toNullable'): toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) W. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 861 out of 1000 EXPLAIN AST SELECT toNullable(toNullable(56)), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT toNullable(56), log(2), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT toNullable(56), log(2), 3, round(max(multiply(toLowCardinality(3), log(toUInt256(2)), number)) RESPECT NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT toNullable(56), log(2), 3, round(max(multiply(toLowCardinality(3), log(toUInt256(2)), number)) RESPECT NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT toNullable(56), log(2), 3, round(max(multiply(toLowCardinality(3), log(toUInt256(2)), number)) RESPECT NULLS), pow(materialize(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 864 out of 1000 SELECT 56, log(toLowCardinality(toNullable(2))), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT 56, log(toLowCardinality(toNullable(2))), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 866 out of 1000 SELECT 56, log(toLowCardinality(toNullable(2))), toLowCardinality(56), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT 56, log(toNullable(2)), toLowCardinality(toLowCardinality(56)), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT 56, log(toNullable(2)), toLowCardinality(toLowCardinality(56)), 3, round(max(log(toUInt256(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), pow(3, 2), power(3, materialize(2)) FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 56, log(toNullable(2)), toLowCardinality(toLowCardinality(56)), 3, round(max(log(toUInt256(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), pow(3, 2), power(3, materialize(2)) FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 56, log(toNullable(2)), toLowCardinality(toLowCardinality(56)), 3, round(max(log(toUInt256(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), pow(3, 2), power(3, materialize(2)) FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(0) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 869 out of 1000 SELECT 56, log(toNullable(2)), toLowCardinality(toLowCardinality(56)), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, materialize(2)) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 56, log(toNullable(2)), toLowCardinality(toLowCardinality(56)), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), power(3, materialize(2)) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 870 out of 1000 SELECT 56, log(2), toLowCardinality(56), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), POWER(3, toLowCardinality(2)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 56, log(2), toLowCardinality(56), 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(materialize(3), 2), POWER(3, toLowCardinality(2)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT 56, log(materialize(2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), POWER(3, if(dateDiff(if(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(POW(POW(3, 2), 2))), toLowCardinality(toUInt128(2))), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, log(materialize(2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), POWER(3, if(dateDiff(if(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(POW(POW(3, 2), 2))), toLowCardinality(toUInt128(2))), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 56, log(materialize(2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), POWER(3, if(dateDiff(if(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(2)))) = 0, 'ok', toString(POW(POW(3, 2), 2))), toLowCardinality(toUInt128(2))), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 873 out of 1000 SELECT 56, log(2), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), POWER(3, toLowCardinality(2)), power(materialize(3), materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 SELECT 56, log(2), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), POWER(3, toLowCardinality(2)), power(materialize(3), materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT 56, log(2), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(materialize(3), toLowCardinality(2)), power(3, materialize(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 SELECT 56, log(2), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(materialize(3), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT materialize(56), log(2), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(materialize(3), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 SELECT materialize(56), log(2), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 SELECT materialize(56), log(toUInt256(2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT 56, log(toUInt256(2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT 56, log(toUInt256(log(toLowCardinality(toNullable(2))), 2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(pow(3, toLowCardinality(2)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT 56, log(toUInt256(log(toLowCardinality(toNullable(2))), 2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(pow(3, toLowCardinality(2)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC': 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 56, log(toUInt256(log(toLowCardinality(toNullable(2))), 2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(pow(3, toLowCardinality(2)), 3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780eaef 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 882 out of 1000 SELECT 56, log(toUInt256(2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 883 out of 1000 SELECT 56, log(toUInt256(2)), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 884 out of 1000 SELECT 56, log(toUInt256(2)), 56, 3, toNullable(toNullable(0)), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(materialize(toLowCardinality(2)), 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT 56, log(toUInt256(2)), 56, 3, toNullable(toNullable(0)), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(materialize(toLowCardinality(2)), 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC': 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(2, 'LowCardinality(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 885 out of 1000 SELECT 56, log(toUInt256(2)), 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 SELECT POW(materialize(toNullable(3)), 2), 56, log(toUInt256(2)), 56, 3, round(max(log(log(toLowCardinality(toUInt128(2))) * number, materialize(toUInt256(2))) * number)), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT POW(materialize(toNullable(3)), 2), 56, log(toUInt256(2)), 56, 3, round(max(log(log(toLowCardinality(toUInt128(2))) * number, materialize(toUInt256(2))) * number)), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT POW(materialize(toNullable(3)), 2), 56, log(toUInt256(2)), 56, 3, round(max(log(log(toLowCardinality(toUInt128(2))) * number, materialize(toUInt256(2))) * number)), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 887 out of 1000 SELECT 56, log(toUInt256(2)), 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, log(toUInt256(2)), 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 888 out of 1000 SELECT 56, log(toUInt256(2)), 56, 3, round(max(log(materialize(toNullable(3), toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, log(toUInt256(2)), 56, 3, round(max(log(materialize(toNullable(3), toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT 56, log(toUInt256(2)), 56, 3, round(max(log(materialize(toNullable(3), toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 889 out of 1000 SELECT 56, 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT 56, toNullable(toUInt256(56)), 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(2), POWER(3, toLowCardinality(toNullable(2))), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, toNullable(toUInt256(56)), 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(2), POWER(3, toLowCardinality(toNullable(2))), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 56, toNullable(toUInt256(56)), 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(2), POWER(3, toLowCardinality(toNullable(2))), power(materialize(toNullable(3)), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 891 out of 1000 SELECT 56, 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, materialize(toNullable(toUInt128(2)))), POWER(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, materialize(toNullable(toUInt128(2)))), POWER(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 56, 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, materialize(toNullable(toUInt128(2)))), POWER(materialize(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56)), 3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 892 out of 1000 SELECT 56, 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, toNullable(2)) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, 56, 3, round(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, toNullable(2)) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 893 out of 1000 SELECT 56, 56, 3, round(round(avg(log(toUInt256(2)) * number)), max(log(materialize(toUInt256(2))) * number) RESPECT NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, 56, 3, round(round(avg(log(toUInt256(2)) * number)), max(log(materialize(toUInt256(2))) * number) RESPECT NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 894 out of 1000 SELECT 56, 56, 3, round(max(log(toUInt256(2)) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(POW(3, toLowCardinality(toUInt256(2))), 3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(POW(3, toLowCardinality(toUInt256(2))), 3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(POW(3, toLowCardinality(toUInt256(2))), 3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 898 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) RESPECT NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) RESPECT NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 899 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT 56, toLowCardinality(toNullable(56)), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 SELECT 56, toLowCardinality(toNullable(56)), 3, round(toLowCardinality(toUInt128(6)), max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 56, toLowCardinality(toNullable(56)), 3, round(toLowCardinality(toUInt128(6)), max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': 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 56, toLowCardinality(toNullable(56)), 3, round(toLowCardinality(toUInt128(6)), max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 903 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), max(log(2) * number)), pow(3, materialize(toLowCardinality(2))), POWER(toUInt256(3), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT toNullable(56), toLowCardinality(56), 3, round(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), max(log(2) * number)), pow(3, materialize(toLowCardinality(2))), POWER(toUInt256(3), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'x' to function 'round'. Expected: A number to round, got: FixedString(57): In scope SELECT toNullable(56), toLowCardinality(56), 3, round(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), max(log(2) * number)), pow(3, materialize(toLowCardinality(2))), POWER(toUInt256(3), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 905 out of 1000 SELECT toNullable(56), toLowCardinality(POW(toLowCardinality(3), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 2), 56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT toNullable(56), toLowCardinality(POW(toLowCardinality(3), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 2), 56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable(56), toLowCardinality(POW(toLowCardinality(3), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 2), 56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS LAST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 906 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(toUInt256(2)), toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(toUInt256(2)), toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(toUInt256(2)), toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 907 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 SELECT toNullable(56), toLowCardinality(56), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))), 2))), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT toNullable(56), toLowCardinality(56), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, toLowCardinality(2)))), 2))), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable(56), toLowCardinality(56), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 2))), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 909 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 910 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 911 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, materialize(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, materialize(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) 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 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, materialize(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 912 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 913 out of 1000 SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number)), pow(3, clear_column__fuzz_12, toLowCardinality(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number)), pow(3, clear_column__fuzz_12, toLowCardinality(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_12' in scope SELECT toNullable(56), toLowCardinality(56), 3, round(max(log(2) * number)), pow(3, clear_column__fuzz_12, toLowCardinality(2)), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 914 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(toLowCardinality(3), materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) PREWHERE clear_column__fuzz_12 GROUP BY materialize(toLowCardinality(toUInt128(toLowCardinality(toNullable(3))))) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(toLowCardinality(3), materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) PREWHERE clear_column__fuzz_12 GROUP BY materialize(toLowCardinality(toUInt128(toLowCardinality(toNullable(3))))) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_12' in scope SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(toLowCardinality(3), materialize(toLowCardinality(2))), POWER(3, toLowCardinality(2)), power(3, 2) FROM numbers(10000000) PREWHERE clear_column__fuzz_12 GROUP BY materialize(toLowCardinality(toUInt128(toLowCardinality(toNullable(3))))) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 916 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57, toLowCardinality(2))), POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57, toLowCardinality(2))), POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 3, should be 1: In scope SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, materialize(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57, toLowCardinality(2))), POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 918 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), toUInt256(toNullable(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), toUInt256(toNullable(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 56, toLowCardinality(56), 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), toUInt256(toNullable(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 919 out of 1000 SELECT 56, toLowCardinality(materialize(56)), 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(materialize(clear_column__fuzz_25, toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT 56, toLowCardinality(materialize(56)), 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(materialize(clear_column__fuzz_25, toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_25' in scope SELECT 56, toLowCardinality(materialize(56)), 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, materialize(toLowCardinality(2))), POWER(materialize(clear_column__fuzz_25, toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 920 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) PREWHERE toFixedString('ok', 2, 2) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, toLowCardinality(56), 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) PREWHERE toFixedString('ok', 2, 2) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 56, toLowCardinality(56), 3, round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) PREWHERE toFixedString('ok', 2, 2) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 923 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(POWER(2, 3), log(toLowCardinality(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(3), 2), power(3, toUInt256(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, toLowCardinality(56), 3, round(max(POWER(2, 3), log(toLowCardinality(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(3), 2), power(3, toUInt256(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 924 out of 1000 SELECT 56, toLowCardinality(56), 3, round(max(multiply(POW(3, toLowCardinality(2)), log(toLowCardinality(2)), number)) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT 56, toLowCardinality(56), 3, round(max(multiply(POW(3, toLowCardinality(2)), log(toLowCardinality(2)), number)) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) 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 SELECT 56, toLowCardinality(56), 3, round(max(multiply(POW(3, toLowCardinality(2)), log(toLowCardinality(2)), number)) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 925 out of 1000 SELECT 56, 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT toUInt256(56), 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, current_database = currentDatabase() ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT toUInt256(56), 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, current_database = currentDatabase() ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toUInt256(56), 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, current_database = currentDatabase() ASC, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 927 out of 1000 SELECT 56, 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(POWER(materialize(3), materialize(2)), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 56, 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(POWER(materialize(3), materialize(2)), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 56, 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(POWER(materialize(3), materialize(2)), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 928 out of 1000 SELECT 56, 56, 3, round(max(multiply(number)) IGNORE NULLS), pow(3, 2), POWER(materialize(toLowCardinality(3)), 2), power(3, toUInt128(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, 56, 3, round(max(multiply(number)) IGNORE NULLS), pow(3, 2), POWER(materialize(toLowCardinality(3)), 2), power(3, toUInt128(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 56, 56, 3, round(max(multiply(number)) IGNORE NULLS), pow(3, 2), POWER(materialize(toLowCardinality(3)), 2), power(3, toUInt128(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 929 out of 1000 SELECT 56, 56, 3, round(max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(3), 2), power(3, 2) FROM numbers(10000000) GROUP BY toDateTime(tupleElement(time, 1)), POW(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, 56, 3, round(max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(3), 2), power(3, 2) FROM numbers(10000000) GROUP BY toDateTime(tupleElement(time, 1)), POW(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 56, 56, 3, round(max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(3), 2), power(3, 2) FROM numbers(10000000) GROUP BY toDateTime(time.1), POW(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 930 out of 1000 SELECT 56, 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC NULLS LAST Got boring AST Fuzzing step 931 out of 1000 SELECT 56, 56, 3, round(max(log(toLowCardinality(materialize(toNullable(2)))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT 56, 56, 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT 56, 56, 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT 56, 56, 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Error on processing query 'SELECT 56, 56, 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 56, 56, 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(materialize(toLowCardinality(3)), 2), power(2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 935 out of 1000 SELECT 56, 56, 3, round(max(log(materialize(toNullable(2))) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 SELECT 56, 56, 3, round(max(log(toNullable(2)) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(toNullable(2)))), POWER(toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC NULLS LAST, toLowCardinality(toUInt128(6)) ASC NULLS FIRST Got boring AST Fuzzing step 940 out of 1000 EXPLAIN ESTIMATE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('56'): 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 942 out of 1000 EXPLAIN ESTIMATE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 943 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('56'): 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 944 out of 1000 EXPLAIN ESTIMATE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 945 out of 1000 EXPLAIN ESTIMATE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 946 out of 1000 EXPLAIN ESTIMATE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 947 out of 1000 EXPLAIN ESTIMATE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 948 out of 1000 EXPLAIN ESTIMATE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 949 out of 1000 EXPLAIN AST SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 EXPLAIN QUERY TREE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 EXPLAIN SYNTAX SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 EXPLAIN SYNTAX SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 953 out of 1000 EXPLAIN SYNTAX SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 954 out of 1000 EXPLAIN SYNTAX SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(toLowCardinality(2))), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 955 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, toLowCardinality(2)), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(toNullable(3)), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT toNullable(56), 56, 3, round(max(toNullable(materialize(3)), log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT toNullable(56), 56, 3, round(max(toNullable(materialize(3)), log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x0000000016270334 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 959 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 960 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Got boring AST Fuzzing step 961 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(pow(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 3, toLowCardinality(materialize(2))), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(pow(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 3, toLowCardinality(materialize(2))), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(pow(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)), 3, toLowCardinality(materialize(2))), toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 963 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)), 3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)), 3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)), 3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 964 out of 1000 SELECT 56, 56, toUInt128(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT 56, 56, toUInt128(materialize(3)), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2), power(3, toUInt256(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, 56, toUInt128(materialize(3)), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2), power(3, toUInt256(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 56, 56, toUInt128(materialize(3)), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(toLowCardinality(3), 2), power(3, toUInt256(2)) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC NULLS FIRST, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 966 out of 1000 SELECT 56, 56, toUInt128(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 EXPLAIN PIPELINE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 EXPLAIN PIPELINE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(materialize(toUInt256(63)), 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) DESC Error on processing query 'EXPLAIN PIPELINE SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(materialize(toUInt256(63)), 10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) 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(_CAST('63', 'UInt256')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 970 out of 1000 EXPLAIN SYNTAX SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toUInt128(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Error on processing query 'EXPLAIN SYNTAX SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toUInt128(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: While processing 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), pow(3, toUInt128(2)), pow(3, 2): While processing SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), pow(3, toUInt128(2)), pow(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY pow(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 18. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 21. ./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&) @ 0x000000001773fb78 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 23. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 25. ./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) @ 0x0000000017da634c 26. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 28. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 Fuzzing step 971 out of 1000 EXPLAIN PIPELINE SELECT 56, 56, 3, round(max(multiply(toUInt256(3), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC Error on processing query 'EXPLAIN PIPELINE SELECT 56, 56, 3, round(max(multiply(toUInt256(3), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT 56, 56, 3, round(max(multiply(toUInt256(3), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) ASC, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 972 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Got boring AST Fuzzing step 973 out of 1000 SELECT 56, 56, 3, round(max(multiply(POW(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 2), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, 56, 3, round(max(multiply(POW(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 2), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 4, should be 2: In scope SELECT 56, 56, 3, round(max(multiply(POW(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, 2), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 974 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) PREWHERE 2147483646 WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(materialize(3), 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) PREWHERE 2147483646 WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 975 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 976 out of 1000 SELECT 56, 56, 3, round(max(multiply(materialize(toLowCardinality(2)), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Error on processing query 'SELECT 56, 56, 3, round(max(multiply(materialize(toLowCardinality(2)), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT 56, 56, 3, round(max(multiply(materialize(toLowCardinality(2)), log(2), number)) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 977 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toFixedString('ok', toUInt128(2), 2), 2), power(3, 2) FROM numbers(10000000) PREWHERE log(toUInt128(2)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toFixedString('ok', toUInt128(2), 2), 2), power(3, 2) FROM numbers(10000000) PREWHERE log(toUInt128(2)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toFixedString('ok', toUInt128(2), 2), 2), power(3, 2) FROM numbers(10000000) PREWHERE log(toUInt128(2)) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 978 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Got boring AST Fuzzing step 979 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Got boring AST Fuzzing step 980 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize(toNullable(2))), 3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize(toNullable(2))), 3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize(toNullable(2))), 3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 981 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Got boring AST Fuzzing step 982 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Got boring AST Fuzzing step 983 out of 1000 SELECT 56, 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY POW(toLowCardinality(toLowCardinality(3)), toLowCardinality(2)) DESC, toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 986 out of 1000 SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, log(materialize(toNullable(materialize(toLowCardinality(2))))), 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Error on processing query 'SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, log(materialize(toNullable(materialize(toLowCardinality(2))))), 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, log(materialize(toNullable(materialize(toLowCardinality(2))))), 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 SELECT materialize(56), 56, 3, round(max(log(2) * number) RESPECT NULLS), pow(3, 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT materialize(56), 56, 3, round(max(log(2) * number) RESPECT NULLS), pow(3, 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 988 out of 1000 SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC Got boring AST Fuzzing step 989 out of 1000 SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), 3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC Error on processing query 'SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), 3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), 3, toNullable(2)), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 990 out of 1000 SELECT materialize(56), 56, 3, round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT materialize(56), toUInt256(56), toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT materialize(56), toUInt256(56), toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) ASC NULLS LAST Got boring AST Fuzzing step 993 out of 1000 SELECT materialize(56), 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT materialize(56), 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(materialize(materialize(toLowCardinality(toFixedString(POWER(materialize(toLowCardinality(2))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 2))), 3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Error on processing query 'SELECT materialize(56), 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(materialize(materialize(toLowCardinality(toFixedString(POWER(materialize(toLowCardinality(2))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 2))), 3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT materialize(56), 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(materialize(materialize(toLowCardinality(toFixedString(POWER(materialize(toLowCardinality(2))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 2))), 3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 995 out of 1000 SELECT materialize(56), 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Got boring AST Fuzzing step 996 out of 1000 SELECT materialize(56), 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 SELECT materialize(56), 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT 56, 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT 56, 56, toUInt256(3), round(max(log(2) * number) IGNORE NULLS), pow(3, 2), POWER(3, 2), power(materialize(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toUInt128(6)) DESC NULLS FIRST Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 2 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 3 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 4 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 5 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT round(avg(multiply(number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3 ORDER BY k DESC Error on processing query 'SELECT round(avg(multiply(number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 7 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(log(pow(toLowCardinality(3), 2), materialize(2)), number, 3), number % 3 WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(log(pow(toLowCardinality(3), 2), materialize(2)), number, 3), number % 3 WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(log(pow(toLowCardinality(3), 2), materialize(2)), number, 3), number % 3 WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 8 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number), 6) AS k FROM numbers(materialize(toNullable(10000000))) GROUP BY (number % 2) * (number % 3), number % materialize(3) ORDER BY k DESC Error on processing query 'EXPLAIN PIPELINE SELECT round(avg(log(2) * number), 6) AS k FROM numbers(materialize(toNullable(10000000))) GROUP BY (number % 2) * (number % 3), number % materialize(3) ORDER BY k 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 9 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3) ORDER BY k DESC Got boring AST Fuzzing step 10 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3) ORDER BY k DESC Got boring AST Fuzzing step 11 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3) ORDER BY k DESC Got boring AST Fuzzing step 12 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3) ORDER BY k DESC Got boring AST Fuzzing step 13 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k DESC Got boring AST Fuzzing step 15 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k DESC Got boring AST Fuzzing step 16 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k DESC Got boring AST Fuzzing step 17 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH CUBE ORDER BY materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH CUBE ORDER BY materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH CUBE ORDER BY materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 19 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 20 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(number) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(number) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(number) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 21 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(toUInt128(57), number, 2) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(toUInt128(57), number, 2) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(toUInt128(57), number, 2) * (number % 3), number % 3 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 22 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY k DESC 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 24 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT round(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT round(power(POWER(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 26 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 27 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 28 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) ASC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 29 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 30 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 31 out of 1000 SELECT round(avg(toLowCardinality(56), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(toLowCardinality(56), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(FixedString(57)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 32 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toLowCardinality(toUInt128(toUInt128(57)))) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toLowCardinality(toUInt128(toUInt128(57)))) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toLowCardinality(toUInt128(toUInt128(57)))) DESC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toLowCardinality(toUInt128(toUInt128(57)))) DESC NULLS LAST, k ASC Got boring AST Fuzzing step 38 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toLowCardinality(toUInt128(toUInt128(57)))) DESC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 41 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 43 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 45 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 46 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT round(avg(log(max(log(toNullable(2)) * number) IGNORE NULLS, toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(max(log(toNullable(2)) * number) IGNORE NULLS, toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(max(log(toNullable(2)) * number) IGNORE NULLS, toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 48 out of 1000 SELECT round(avg(multiply(avg(log(2) * number) IGNORE NULLS, log(toLowCardinality(2)), number)) IGNORE NULLS, toUInt128(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(multiply(avg(log(2) * number) IGNORE NULLS, log(toLowCardinality(2)), number)) IGNORE NULLS, toUInt128(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(avg(log(2) * number) IGNORE NULLS, log(toLowCardinality(2)), number)) IGNORE NULLS, toUInt128(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 49 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 50 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 53 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(toNullable(2)), 2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(log(toLowCardinality(toLowCardinality(toNullable(2)), 2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(toLowCardinality(toLowCardinality(toNullable(2)), 2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 54 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 55 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 56 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 57 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 58 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 59 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 61 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 63 out of 1000 SELECT round(avg(materialize(toLowCardinality(3)), log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(materialize(toLowCardinality(3)), log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 64 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT round(avg(multiply(toFixedString(toNullable(toFixedString('ok', 2)), 2), log(toLowCardinality(2)), number)) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(multiply(toFixedString(toNullable(toFixedString('ok', 2)), 2), log(toLowCardinality(2)), number)) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(toFixedString(toNullable(toFixedString('ok', 2)), 2), log(toLowCardinality(2)), number)) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 66 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE tupleElement(time, toLowCardinality(clear_column__fuzz_35, toLowCardinality(2))) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE tupleElement(time, toLowCardinality(clear_column__fuzz_35, toLowCardinality(2))) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE tupleElement(time, toLowCardinality(clear_column__fuzz_35, toLowCardinality(2))) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 68 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 71 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 73 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, '01473_metric_log_table_event_start_time_microseconds_test', 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, '01473_metric_log_table_event_start_time_microseconds_test', 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'round'. Expected 1 mandatory argument and 1 optional argument, got 3 arguments: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, '01473_metric_log_table_event_start_time_microseconds_test', 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 74 out of 1000 SELECT round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 75 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT round(clear_column__fuzz_20, avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(clear_column__fuzz_20, avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_20' in scope SELECT round(clear_column__fuzz_20, avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 77 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 78 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k DESC 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 79 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 80 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 82 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(57)), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(57)), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'round'. Expected 1 mandatory argument and 1 optional argument, got 3 arguments: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(57)), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 83 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, toUInt128(2)), 2))) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, toUInt128(2)), 2))) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, toUInt128(2)), 2))) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 85 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 86 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 87 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 88 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 89 out of 1000 SELECT round(avg(multiply(round(avg(log(toNullable(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(2), number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(multiply(round(avg(log(toNullable(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(2), number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT round(avg(multiply(round(avg(log(toNullable(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(2), number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 90 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 91 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 94 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 96 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 97 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 103 out of 1000 EXPLAIN SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 106 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 107 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 108 out of 1000 EXPLAIN SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 EXPLAIN AST SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 111 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 114 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 EXPLAIN SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 117 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 119 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 120 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 123 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 125 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 126 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) PREWHERE log(toUInt256(2)) * number WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC Error on processing query 'SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) PREWHERE log(toUInt256(2)) * number WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f769 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757ce11 8. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 129 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k 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 SELECT round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 130 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 132 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(6), 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(6), 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 135 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 136 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 137 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 139 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(round(max(log(toNullable(2)) * number) RESPECT NULLS), 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(round(max(log(toNullable(2)) * number) RESPECT NULLS), 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max(multiply(log(_CAST(2, 'Nullable(UInt8)')), number)) RESPECT NULLS is found in wrong place in query: While processing max(log(_CAST(2, 'Nullable(UInt8)')) * number) RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752319 7. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 8. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863e2 9. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 10. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 11. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 12. ./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 @ 0x0000000015ea812a 13. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 14. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 141 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toUInt128(6)) AS k FROM numbers(10000000) WHERE 28 WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, toUInt128(6)) AS k FROM numbers(10000000) WHERE 28 WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST': 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: UInt128: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, toUInt128(6)) AS k FROM numbers(10000000) WHERE 28 WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 142 out of 1000 SELECT round(avg(log(max(log(toUInt256(2)) * number), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(max(log(toUInt256(2)) * number), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(max(log(toUInt256(2)) * number), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 143 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC NULLS LAST Got boring AST Fuzzing step 145 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC Got boring AST Fuzzing step 148 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC Got boring AST Fuzzing step 149 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT log(pow(toLowCardinality(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC Error on processing query 'SELECT log(pow(toLowCardinality(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT log(pow(toLowCardinality(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 154 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(toUInt128(6))) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(toUInt128(6))) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 155 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC Got boring AST Fuzzing step 156 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC Got boring AST Fuzzing step 157 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 SELECT avg(log(toUInt256(2)) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 SELECT avg(log(toUInt256(2)) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC, k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 162 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) GROUP BY materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) GROUP BY materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 2]. In scope SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) GROUP BY materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57 WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 163 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) PREWHERE toDateTime(tupleElement(time, toLowCardinality(toNullable(2)))) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) PREWHERE toDateTime(tupleElement(time, toLowCardinality(toNullable(2)))) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) PREWHERE toDateTime(tupleElement(time, toLowCardinality(toNullable(2)))) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 166 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, toLowCardinality(10000000)) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, toLowCardinality(10000000)) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 167 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 168 out of 1000 SELECT avg(log(2) * number), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS, round(avg(log(2) * number) IGNORE NULLS, power(toLowCardinality(3), toNullable(3), materialize(2)), 6) AS k FROM numbers(materialize(materialize(toLowCardinality(toLowCardinality(2)))), 6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS, round(avg(log(2) * number) IGNORE NULLS, power(toLowCardinality(3), toNullable(3), materialize(2)), 6) AS k FROM numbers(materialize(materialize(toLowCardinality(toLowCardinality(2)))), 6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k 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(materialize(_CAST(2, 'LowCardinality(UInt8)'))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 170 out of 1000 SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 172 out of 1000 SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toLowCardinality('ok'), toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time)) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 173 out of 1000 SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, materialize(toNullable(10000000))) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, materialize(toNullable(10000000))) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 176 out of 1000 SELECT avg(log(2) * number), log(materialize(toUInt128(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6, 10000000) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 177 out of 1000 SELECT avg(log(2) * number), log(toUInt128(2)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT avg(log(2) * number), log(toUInt128(toLowCardinality(toUInt256(2)))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT avg(log(2) * number), log(toUInt128(toLowCardinality(toUInt256(2)))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(6)) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT avg(log(2) * number), log(toUInt128(toLowCardinality(toUInt256(2)))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(6)) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 180 out of 1000 SELECT avg(log(2) * number), log(toUInt128(toLowCardinality(toUInt256(2)))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 SELECT avg(multiply(log(2), materialize(toNullable(toUInt256(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))), 2))), number)), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'SELECT avg(multiply(log(2), materialize(toNullable(toUInt256(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))), 2))), number)), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(multiply(log(2), materialize(toNullable(toUInt256(dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(time.2)), 2))), number)), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 183 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS), 2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 184 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 185 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 186 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE NULL WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 187 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 SELECT avg(multiply(2147483647, log(2), number)), log(toUInt256(2)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(multiply(2147483647, log(2), number)), log(toUInt256(2)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 SELECT avg(multiply(2147483647, log(2), number)), log(toUInt256(2)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 190 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), log(2) * number) IGNORE NULLS, toNullable(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), log(2) * number) IGNORE NULLS, toNullable(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number), log(toLowCardinality(toUInt256(2))), round(avg(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt128(57)), time)), log(2) * number) IGNORE NULLS, toNullable(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 191 out of 1000 SELECT avg(log(2) * number), POW(3, 2), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) GROUP BY round(avg(multiply(toFixedString('ok', toNullable(2)), log(toLowCardinality(2)), number))), toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time), materialize(materialize(toLowCardinality(2))), tupleElement(time, 1) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), POW(3, 2), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) GROUP BY round(avg(multiply(toFixedString('ok', toNullable(2)), log(toLowCardinality(2)), number))), toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time), materialize(materialize(toLowCardinality(2))), tupleElement(time, 1) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 SELECT avg(log(2) * number), POW(3, 2), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) GROUP BY round(avg(multiply(toFixedString('ok', toNullable(2)), log(toLowCardinality(2)), number))), toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time), materialize(materialize(toLowCardinality(2))), time.1 WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 192 out of 1000 SELECT avg(multiply(number)), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(multiply(number)), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)), log(toLowCardinality(toUInt256(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 193 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(2)), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(toLowCardinality(2)), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number), log(toLowCardinality(2)), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 194 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(toUInt256(2)), round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(2), round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(6)) WHERE materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(2), round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(6)) WHERE materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 196 out of 1000 SELECT avg(multiply(number)), log(toUInt256(2)), round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(multiply(number)), log(toUInt256(2)), round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)), log(toUInt256(2)), round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 197 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(toUInt256(2)), round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(toUInt256(2)), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Error on processing query 'SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(toUInt256(2)), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(toUInt256(2)), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 199 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(toUInt256(2)), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(toUInt256(2)), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(FixedString(57)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 200 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Got boring AST Fuzzing step 203 out of 1000 SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Got boring AST Fuzzing step 204 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(2), round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number), log(2), round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 205 out of 1000 SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Got boring AST Fuzzing step 206 out of 1000 SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Error on processing query 'SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 207 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 209 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 210 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(6)) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(6)) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 211 out of 1000 SELECT avg(log(2) * number), log(toDateTime(tupleElement(time, toUInt128(1))), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(toDateTime(tupleElement(time, toUInt128(1))), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number), log(toDateTime(tupleElement(time, toUInt128(1))), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 212 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Got boring AST Fuzzing step 214 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 216 out of 1000 SELECT avg(clear_column__fuzz_27, log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT avg(clear_column__fuzz_27, log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_27' in scope SELECT avg(clear_column__fuzz_27, log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 218 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 219 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 221 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 222 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 223 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 224 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 226 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 228 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 229 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 230 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 231 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 232 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 233 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 237 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 238 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 239 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 240 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 242 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 244 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 245 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 247 out of 1000 SELECT avg(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))), log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, toUInt256(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT avg(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))), log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, toUInt256(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)), log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, toUInt256(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 248 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 251 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 252 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 253 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 255 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 256 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 257 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNO. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 258 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 260 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 261 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 262 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 263 out of 1000 EXPLAIN SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 264 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 266 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 267 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 268 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNO. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 269 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 270 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 271 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 272 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 275 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 276 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT avg(log(2) * number), log(materialize(2), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT avg(log(2) * number), log(materialize(2), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number), log(materialize(2), 2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 278 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 279 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 280 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 282 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 283 out of 1000 EXPLAIN optimize = true SELECT avg(log(2) * number), log(2), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE materialize(toLowCardinality(toUInt256(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), toUInt128(3)))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'EXPLAIN optimize = true SELECT avg(log(2) * number), log(2), round(avg(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(6) WHERE materialize(toLowCardinality(toUInt256(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), toUInt128(3)))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 284 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT avg(log(2) * number), round(avg(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT avg(log(2) * number), round(avg(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number), round(avg(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 286 out of 1000 SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT avg(log(toNullable(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 288 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 290 out of 1000 SELECT avg(log(2) * number), log(round(avg(multiply(log(2), POW(3), number)) IGNORE NULLS, toLowCardinality(toLowCardinality(6))), materialize(toLowCardinality(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), log(round(avg(multiply(log(2), POW(3), number)) IGNORE NULLS, toLowCardinality(toLowCardinality(6))), materialize(toLowCardinality(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number), log(round(avg(multiply(log(2), POW(3), number)) IGNORE NULLS, toLowCardinality(toLowCardinality(6))), materialize(toLowCardinality(2))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 291 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(multiply(log(2), toLowCardinality(2), number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), log(2), round(avg(multiply(log(2), toLowCardinality(2), number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 SELECT avg(log(2) * number), log(2), round(avg(multiply(log(2), toLowCardinality(2), number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 292 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(toLowCardinality(toLowCardinality(toUInt128(3))), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), log(2), round(avg(toLowCardinality(toLowCardinality(toUInt128(3))), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 293 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(if(dateDiff(toLowCardinality(toFixedString('second', 6)), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff(toLowCardinality(_CAST('second', 'FixedString(6)')), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2)))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 295 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 296 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 297 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 299 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 300 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 301 out of 1000 SELECT avg(log(toLowCardinality(toUInt128(2))) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 302 out of 1000 SELECT avg(log(toLowCardinality(toUInt128(2))) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT avg(log(toLowCardinality(toUInt128(2))) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Got boring AST Fuzzing step 304 out of 1000 SELECT avg(log(toLowCardinality(toUInt128(2))) * number), POW(3, materialize(toNullable(2))), log(2), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'SELECT avg(log(toLowCardinality(toUInt128(2))) * number), POW(3, materialize(toNullable(2))), log(2), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 SELECT avg(log(toUInt128(2)) * number), log(2), round(avg(materialize(toNullable('ok', 2)), log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Error on processing query 'SELECT avg(log(toUInt128(2)) * number), log(2), round(avg(materialize(toNullable('ok', 2)), log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 avg(log(toUInt128(2)) * number), log(2), round(avg(materialize(toNullable('ok', 2)), log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 306 out of 1000 SELECT avg(log(toUInt128(2)) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT avg(log(2) * number), log(2), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT avg(log(2) * number), log(2), toNullable(toLowCardinality(materialize(57))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT avg(log(2) * number), log(2), toNullable(toLowCardinality(materialize(57))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT avg(log(2) * number), log(2), toNullable(toLowCardinality(materialize(57))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 312 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), toLowCardinality(materialize(57)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), materialize(57), round(avg(multiply(log(2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT avg(log(materialize(2)) * number), log(2), materialize(57), round(avg(multiply(log(2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(materialize(2)) * number), log(2), materialize(57), round(avg(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toUInt128(57), time)), number)) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 314 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS, log(2), materialize(57), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS, log(2), materialize(57), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 315 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), toLowCardinality(57), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 EXPLAIN SYNTAX SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materializ. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 320 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materializ. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 321 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 322 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 324 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 325 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 326 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 328 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 329 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 330 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 332 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 333 out of 1000 EXPLAIN SYNTAX SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN SYNTAX SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 335 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 337 out of 1000 EXPLAIN PIPELINE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN PIPELINE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 339 out of 1000 EXPLAIN PIPELINE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 340 out of 1000 EXPLAIN PIPELINE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 342 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materializ. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 343 out of 1000 EXPLAIN PIPELINE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 344 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 EXPLAIN SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 EXPLAIN SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 347 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 348 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 350 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 351 out of 1000 EXPLAIN AST SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 352 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 SELECT avg(log(materialize(2)) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 357 out of 1000 SELECT avg(log(2) * number), log(2), toLowCardinality('ok', toUInt256(2)), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(2), toLowCardinality('ok', toUInt256(2)), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 SELECT avg(log(2) * number), log(2), toLowCardinality('ok', toUInt256(2)), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 358 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 SELECT avg(multiply(avg(log(toLowCardinality(toUInt128(2))) * number), log(2), number)), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT avg(multiply(avg(log(toLowCardinality(toUInt128(2))) * number), log(2), number)), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 SELECT avg(multiply(avg(log(toLowCardinality(toUInt128(2))) * number), log(2), number)), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 364 out of 1000 SELECT avg(log(2) * number), log(toLowCardinality(toLowCardinality(56)), 2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), log(toLowCardinality(toLowCardinality(56)), 2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number), log(toLowCardinality(toLowCardinality(56)), 2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 365 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(multiply(log(2))), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(2), 57, round(avg(multiply(log(2))), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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 SELECT avg(log(2) * number), log(2), 57, round(avg(multiply(log(2))), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 366 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(multiply(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), log(2), number)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), log(2), 57, round(avg(multiply(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), log(2), number)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number), log(2), 57, round(avg(multiply(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), log(2), number)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 368 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 369 out of 1000 SELECT avg(log(2) * number), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 SELECT avg(log(pow(3, 2), 2) * number), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT avg(log(pow(3, 2), 2) * number), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(pow(3, 2), 2) * number), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 371 out of 1000 EXPLAIN PIPELINE SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 EXPLAIN PIPELINE SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 373 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('log'): log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 374 out of 1000 EXPLAIN SYNTAX SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 EXPLAIN SYNTAX SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 376 out of 1000 EXPLAIN SYNTAX SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 377 out of 1000 EXPLAIN SYNTAX SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 378 out of 1000 EXPLAIN SYNTAX SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 379 out of 1000 EXPLAIN SYNTAX SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 380 out of 1000 EXPLAIN ESTIMATE SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 EXPLAIN ESTIMATE SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 382 out of 1000 EXPLAIN ESTIMATE SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 383 out of 1000 EXPLAIN AST SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('log'): log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 385 out of 1000 EXPLAIN SYNTAX SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 SELECT log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 390 out of 1000 SELECT toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(toUInt128(2)), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) GROUP BY toString(POW(2), time) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(toUInt128(2)), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) GROUP BY toString(POW(2), time) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(toUInt128(2)), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) GROUP BY toString(POW(2), time) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 393 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 396 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 399 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toString(2, 57, POWER(2, toLowCardinality(3)), time), toUInt256(1)))), toDateTime(time.2)) = 0, 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toString(2, 57, POWER(2, toLowCardinality(3)), time), toUInt256(1)))), toDateTime(time.2)) = 0, 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff(toLowCardinality(_CAST('second', 'Nullable(String)')), toDateTime(tupleElement(time, toNullable(toString(2, 57, pow(2, toLowCardinality(3)), time), toUInt256(1)))), toDateTime(time.2)) = 0', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 400 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 401 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), log(2), 57, round(avg(log(2) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 404 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), log(2), 57, round(avg(log(toLowCardinality(2)) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), log(2), 57, round(avg(log(toLowCardinality(2)) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 406 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), log(2), 57, round(avg(log(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 2)) * number), 6) AS k FROM numbers(log(toNullable(materialize(2))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), toNullable(57), log(2), 57, round(avg(log(toLowCardinality(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(2, 3), time)), 2)) * number), 6) AS k FROM numbers(log(toNullable(materialize(2))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': 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): log(toNullable(materialize(2))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 407 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), log(2), 57, round(avg(log(toLowCardinality(2)) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), log(2), 57, round(avg(log(toLowCardinality(2)) * number), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 409 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(if(dateDiff('second', toDateTime(tupleElement(POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))), time, 1)), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(if(dateDiff('second', toDateTime(tupleElement(POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))), time, 1)), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(if(dateDiff('second', toDateTime(tupleElement(POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))), time, 1)), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 27. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 Fuzzing step 412 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 413 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(toUInt128(3), 6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(toUInt128(3), 6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 414 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 415 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Got boring AST Fuzzing step 417 out of 1000 SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(6) AS k FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'SELECT materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57, log(2), 57, round(6) AS k FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 418 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 420 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 423 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 424 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 426 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 427 out of 1000 EXPLAIN AST graph = true, optimize = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(POW(3, materialize(materialize(POWER(3, 2), toLowCardinality(2)))), 2), 57, round(6) AS k FROM numbers(toFixedString('ok', toNullable(toUInt128(2))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Error on processing query 'EXPLAIN AST graph = true, optimize = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(POW(3, materialize(materialize(POWER(3, 2), toLowCardinality(2)))), 2), 57, round(6) AS k FROM numbers(toFixedString('ok', toNullable(toUInt128(2))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 428 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) GROUP BY dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), if(dateDiff(if(if(dateDiff('second', toDateTime(tupleElement(time, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 1)), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))), clear_column__fuzz_36 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) GROUP BY dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), if(dateDiff(if(if(dateDiff('second', toDateTime(tupleElement(time, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 1)), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))), clear_column__fuzz_36 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) GROUP BY dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)), if(dateDiff(if(if(dateDiff('second', toDateTime(tupleElement(time, materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 1)), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0), 'ok', toString(POW(POW(3, 2), 2))), 'second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POW(3, 2), 2))), clear_column__fuzz_36 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 429 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 431 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(2), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 432 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(toNullable(2)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, log(toNullable(2)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 436 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 437 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 440 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(power(POW(3, toNullable(2)), toNullable(3), toLowCardinality(2)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(power(POW(3, toNullable(2)), toNullable(3), toLowCardinality(2)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(power(POW(3, toNullable(2)), toNullable(3), toLowCardinality(2)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 443 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, round(6) AS k FROM numbers(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, round(6) AS k FROM numbers(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 444 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(avg(log(materialize(toNullable(2))) * number) RESPECT NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(avg(log(materialize(toNullable(2))) * number) RESPECT NULLS, 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 446 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 448 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 449 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 451 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 454 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 455 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 456 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 457 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 458 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 459 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 460 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Got boring AST Fuzzing step 463 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(57)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(57)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(57)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 466 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(57)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 467 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(57)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(toNullable(57)), 57, round(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(toNullable(57)), 57, round(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', materialize(toNullable(57)), 57, round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), 6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 469 out of 1000 EXPLAIN PIPELINE compact = true SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(toUInt256(57))), 57, round(6) AS k FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(toUInt256(57))), 57, round(6) AS k FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 470 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(57)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 471 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(toNullable(57)), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Got boring AST Fuzzing step 472 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 476 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), materialize(57), round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), materialize(57), round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 483 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(0), toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(0), toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 484 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 486 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(6) AS k FROM numbers(6) WHERE toNullable(toUInt256(3)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(6) AS k FROM numbers(6) WHERE toNullable(toUInt256(3)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 487 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 488 out of 1000 SELECT toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 492 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 EXPLAIN PIPELINE header = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 494 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(materialize(6))) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(materialize(6))) AS k FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 495 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 496 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 497 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) PREWHERE toDateTime(tupleElement(time, toLowCardinality(1))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) PREWHERE toDateTime(tupleElement(time, toLowCardinality(1))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) PREWHERE toDateTime(tupleElement(time, toLowCardinality(1))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 499 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Got boring AST Fuzzing step 500 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) DESC Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 502 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC Got boring AST Fuzzing step 503 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS FIRST Got boring AST Fuzzing step 505 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(toUInt128(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC, POWER(2, toNullable(toLowCardinality(toNullable(3)))) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 508 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 509 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 510 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 511 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 512 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 513 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 515 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 517 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 518 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 520 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(57), 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt128(0), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt128(0), round(6) AS k FROM numbers(6) GROUP BY pow(3, toNullable(2)), POWER(toLowCardinality(3), 2), materialize(toUInt256(toNullable(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toUInt128(0), round(6) AS k FROM numbers(6) GROUP BY pow(3, toNullable(2)), POWER(toLowCardinality(3), 2), materialize(toUInt256(toNullable(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, toUInt128(0), round(6) AS k FROM numbers(6) GROUP BY pow(3, toNullable(2)), POWER(toLowCardinality(3), 2), materialize(materialize(toUInt128(0)), toUInt256(toNullable(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, toUInt128(0), round(6) AS k FROM numbers(6) GROUP BY pow(3, toNullable(2)), POWER(toLowCardinality(3), 2), materialize(materialize(toUInt128(0)), toUInt256(toNullable(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57), 57, toUInt128(0), round(6) AS k FROM numbers(6) GROUP BY pow(3, toNullable(2)), POWER(toLowCardinality(3), 2), materialize(materialize(toUInt128(0)), toUInt256(toNullable(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 526 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) GROUP BY pow(3, toNullable(2)), POWER(toLowCardinality(3), 2), materialize(toUInt256(toNullable(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 527 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) GROUP BY pow(3, toNullable(2)), POWER(toLowCardinality(3), 2), toUInt256(toNullable(3)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, 0, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(0), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, toNullable(0), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 531 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, materialize(57), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 EXPLAIN PIPELINE header = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 535 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) PREWHERE round(max(log(toNullable(toNullable(toUInt256(3)), 2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) PREWHERE round(max(log(toNullable(toNullable(toUInt256(3)), 2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) PREWHERE round(max(log(toNullable(toNullable(toUInt256(3)), 2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 537 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', 57, 57, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 538 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 541 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 543 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 544 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 545 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 546 out of 1000 SELECT round(6) AS k FROM numbers(6) GROUP BY POWER(2, toNullable(3)), materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), toNullable(57), '01473_query_log_table_event_start_time_microseconds_test', toString(2, 57, POWER(2, 3)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT round(6) AS k FROM numbers(6) GROUP BY POWER(2, toNullable(3)), materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), toNullable(57), '01473_query_log_table_event_start_time_microseconds_test', toString(2, 57, POWER(2, 3)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(6) AS k FROM numbers(6) GROUP BY POWER(2, toNullable(3)), materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), toNullable(57), '01473_query_log_table_event_start_time_microseconds_test', toString(2, 57, POWER(2, 3)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 547 out of 1000 SELECT round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 548 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(6) AS k FROM numbers(6) GROUP BY power(toNullable(POWER(materialize(3), toNullable(2)), 3), toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(6) AS k FROM numbers(6) GROUP BY power(toNullable(POWER(materialize(3), toNullable(2)), 3), toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(6) AS k FROM numbers(6) GROUP BY power(toNullable(POWER(materialize(3), toNullable(2)), 3), toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 550 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 551 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(toUInt256(6)))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(toUInt256(6)))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 553 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 EXPLAIN SYNTAX SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(6))) AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'EXPLAIN SYNTAX SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(6))) AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(pow(toLowCardinality(pow(toLowCardinality(3), toNullable(2)), 2)), time))', required columns: 'time' 'time': While processing SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(6))) AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 11. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 12. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 13. ./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) @ 0x0000000017da634c 14. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 16. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 17. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 18. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 555 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 556 out of 1000 SELECT materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 557 out of 1000 SELECT materialize(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT materialize(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 559 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT materialize(toFixedString(toLowCardinality(toNullable(2)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT materialize(toFixedString(toLowCardinality(toNullable(2)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT materialize(toFixedString(toLowCardinality(toNullable(2)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 561 out of 1000 SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 562 out of 1000 SELECT materialize(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT materialize(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)) FROM numbers(6) GROUP BY toUInt128(toLowCardinality(0)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(power(materialize(toLowCardinality(3)), 2), time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)), 1024, toString(POW(POW(toLowCardinality(3), 2), 2)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT materialize(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)) FROM numbers(6) GROUP BY toUInt128(toLowCardinality(0)), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(power(materialize(toLowCardinality(3)), 2), time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)), 1024, toString(POW(POW(toLowCardinality(3), 2), 2)), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Positional argument number 1024 is out of bounds. Expected in range [1, 1]. In scope SELECT materialize(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)) FROM numbers(6) GROUP BY toUInt128(toLowCardinality(0)), if(dateDiff('second', toDateTime(time.1), toDateTime(power(materialize(toLowCardinality(3)), 2), time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)), 1024, toString(POW(POW(toLowCardinality(3), 2), 2)), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(0) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 564 out of 1000 SELECT materialize(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT materialize(toFixedString(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(materialize(power(toLowCardinality(3), toNullable(materialize(toNullable(3))), materialize(2)), 3), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(materialize(power(toLowCardinality(3), toNullable(materialize(toNullable(3))), materialize(2)), 3), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(materialize(power(toLowCardinality(3), toNullable(materialize(toNullable(3))), materialize(2)), 3), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 567 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 569 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) GROUP BY avg(log(2) * number) IGNORE NULLS, materialize(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), materialize(toNullable(if(equals('second', dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))), 0), toLowCardinality('ok'), toString(toUInt128(57), time)), 0))), POW(3, toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) GROUP BY avg(log(2) * number) IGNORE NULLS, materialize(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), materialize(toNullable(if(equals('second', dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))), 0), toLowCardinality('ok'), toString(toUInt128(57), time)), 0))), POW(3, toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(materialize(toNullable(6))) AS k FROM numbers(6) GROUP BY avg(log(2) * number) IGNORE NULLS, materialize(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), 'ok', toString(time)), materialize(toNullable(if(equals('second', dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))), 0), toLowCardinality('ok'), toString(toUInt128(57), time)), 0))), POW(3, toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 570 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(toNullable(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 571 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(toNullable(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 SELECT toFixedString(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), round(toNullable(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 573 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(toNullable(6)))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 575 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 576 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toLowCardinality'): toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 578 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 579 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 580 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 581 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 EXPLAIN SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 585 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 586 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 589 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toNullable(toLowCardinality(6))) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toLowCardinality(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toLowCardinality(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 592 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toLowCardinality(6)) AS k FROM numbers(toLowCardinality(toUInt128(6))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toLowCardinality(6)) AS k FROM numbers(toLowCardinality(toUInt128(6))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 593 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toLowCardinality(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 594 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toLowCardinality(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 595 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(toLowCardinality(6)) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 596 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 598 out of 1000 SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(6) AS k FROM numbers(6) WHERE -2147483648 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, round(6) AS k FROM numbers(6) WHERE -2147483648 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Illegal type Int32 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 599 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 600 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(6) AS k FROM numbers(6) GROUP BY 3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('ok'), power(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(6) AS k FROM numbers(6) GROUP BY 3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('ok'), power(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 57 is out of bounds. Expected in range [1, 3]. In scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(6) AS k FROM numbers(6) GROUP BY 3, POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toFixedString('ok'), power(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 601 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(63)), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(63)), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(63)), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 604 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(63)), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 605 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(63)), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(toNullable(63)), round(6) AS k FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 607 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(63)) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(numbers(1048576, 10000000), 63)) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(numbers(1048576, 10000000), 63)) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(toNullable(numbers(1048576, 10000000), 63)) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 609 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63) FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63) FROM numbers(toLowCardinality(6)) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 610 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') DESC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 614 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(sleep(toNullable(materialize(2))), 63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(sleep(toNullable(materialize(2))), 63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(sleep(toNullable(materialize(2))), 63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 615 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 616 out of 1000 SELECT toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), toNullable(6), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), toNullable(6), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), toNullable(6), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 618 out of 1000 SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY toNullable('01473_metric_log_table_event_start_time_microseconds_test') ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 623 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 624 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 625 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 626 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 627 out of 1000 EXPLAIN SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 629 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 630 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 631 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 632 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 633 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toFixedString'): toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY roun. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 634 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 635 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('toFixedString'): toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY roun. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 636 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('toFixedString'): toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY roun. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 637 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 EXPLAIN AST SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 640 out of 1000 EXPLAIN SYNTAX SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toFixedString'): toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY roun. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 642 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toFixedString(materialize(toLowCardinality(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'))), 63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toFixedString(materialize(toLowCardinality(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'))), 63), 63 FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(toNullable(toNullable(3)), 2), toFixedString(materialize(toLowCardinality(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'))), 63), 63 FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(toNullable(toNullable(3)), 2), toFixedString(materialize(toLowCardinality(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'))), 63), 63 FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 646 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toFixedString(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT power(2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) PREWHERE toNullable(57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) PREWHERE toNullable(57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) PREWHERE toNullable(57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 650 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 651 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 652 out of 1000 SELECT power(2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT power(2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 653 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 654 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 655 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 656 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 657 out of 1000 SELECT power(toNullable(3), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WHERE clear_column__fuzz_25 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(toNullable(3), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WHERE clear_column__fuzz_25 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_25' in scope SELECT power(toNullable(3), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WHERE clear_column__fuzz_25 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 SELECT power(toNullable(3), toUInt128(2)), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(toNullable(3), toUInt128(2)), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(toNullable(3), toUInt128(2)), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 659 out of 1000 SELECT power(toNullable(toNullable(3)), toNullable(2)), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 SELECT power(toNullable(toNullable(3)), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT power(toNullable(3), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT power(toNullable(3), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 663 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 665 out of 1000 SELECT power(3, 2), toNullable(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(3, 2), toNullable(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC 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 power(3, 2), toNullable(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 666 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 667 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 668 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 669 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 670 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 671 out of 1000 SELECT power(3), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(3), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 672 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT power(3, 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 674 out of 1000 SELECT power(toLowCardinality(3), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT power(toLowCardinality(3), 2), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 676 out of 1000 SELECT power(toLowCardinality(3), 2), toLowCardinality(toNullable(56)), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT power(3, 2), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT power(3, 2), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT power(3, 2), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 SELECT power(3, 2), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 SELECT power(3, 2), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 682 out of 1000 SELECT power(3, 2), toLowCardinality(56), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT power(3, 2), toLowCardinality(56), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 684 out of 1000 SELECT power(3, 2), toLowCardinality(56), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 685 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS LAST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY POWER(toNullable(2), 3) ASC NULLS FIRST, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 690 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 691 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 692 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 694 out of 1000 SELECT power(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), 3, 2), toUInt128(toNullable(3)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), 3, 2), toUInt128(toNullable(3)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(toFixedString(materialize(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), 3, 2), toUInt128(toNullable(3)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 695 out of 1000 SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT power(3, 2), toLowCardinality(toUInt256(56)), toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(3, 2), toLowCardinality(toUInt256(56)), toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), toLowCardinality(toUInt256(56)), toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 698 out of 1000 EXPLAIN QUERY TREE dump_ast = true, passes = true SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE dump_ast = true, passes = true SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 699 out of 1000 SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 700 out of 1000 SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) GROUP BY materialize(3) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) GROUP BY materialize(3) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC 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 power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63 FROM numbers(6) GROUP BY materialize(3) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 701 out of 1000 SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toNullable(56, '01473_trace_log_table_event_start_time_microseconds_test')), 63), 63, 63 FROM numbers(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toNullable(56, '01473_trace_log_table_event_start_time_microseconds_test')), 63), 63, 63 FROM numbers(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), 56, toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toNullable(56, '01473_trace_log_table_event_start_time_microseconds_test')), 63), 63, 63 FROM numbers(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 702 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 704 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT power(3, materialize(2)), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) GROUP BY dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))), POWER(POW(3, 2), 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(3, materialize(2)), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) GROUP BY dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(tupleElement(time, 2))), POWER(POW(3, 2), 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, materialize(2)), toLowCardinality(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) GROUP BY dateDiff('second', toDateTime(tupleElement(time, materialize(1))), toDateTime(time.2)), POWER(POW(3, 2), 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 706 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 707 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 708 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT power(3, 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT power(3, 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) GROUP BY toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3)), time)), toNullable(materialize(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(3, 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) GROUP BY toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3)), time)), toNullable(materialize(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) GROUP BY toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3)), time)), toNullable(materialize(3))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 711 out of 1000 SELECT power(3, 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 712 out of 1000 SELECT power(3, 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT power(materialize(toLowCardinality(toNullable(3))), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT power(materialize(toLowCardinality(toNullable(3))), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT power(materialize(3), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT power(materialize(3), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(toNullable(toUInt128(6))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT power(materialize(3), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(toNullable(toUInt128(6))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 718 out of 1000 SELECT power(materialize(3), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 719 out of 1000 SELECT power(materialize(3), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 720 out of 1000 SELECT power(materialize(materialize(3)), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT power(materialize(materialize(3)), 2), 56, materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 722 out of 1000 SELECT power(materialize(3), 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 725 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 726 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT power(3, 2), toNullable(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT power(3, 2), toNullable(toUInt128(56)), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 732 out of 1000 SELECT power(3, 2), toUInt128(56), materialize(toString(2, toUInt128(57), POWER(POW(3, 2), toUInt128(2), materialize(3)), time), '01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(3, 2), toUInt128(56), materialize(toString(2, toUInt128(57), POWER(POW(3, 2), toUInt128(2), materialize(3)), time), '01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), toUInt128(56), materialize(toString(2, toUInt128(57), POWER(POW(3, 2), toUInt128(2), materialize(3)), time), '01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(toNullable(0)), 'ok', toNullable(2), toString(time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 733 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 734 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 735 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 736 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 737 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(avg(log(toUInt256(2)) * number), materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(avg(log(toUInt256(2)) * number), materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(multiply(log(_CAST('2', 'UInt256')), number)) is found in wrong place in query: While processing avg(log(_CAST('2', 'UInt256')) * number). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 738 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 740 out of 1000 SELECT power(3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 741 out of 1000 SELECT power(toNullable('ok'), 3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), materialize(toUInt256(63)), 63, 63 FROM numbers(materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(toNullable('ok'), 3, 2), toUInt128(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), materialize(toUInt256(63)), 63, 63 FROM numbers(materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 742 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT power(3, 2), toUInt256(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(log(materialize(toNullable(materialize(toLowCardinality(2))))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(3, 2), toUInt256(56), materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(log(materialize(toNullable(materialize(toLowCardinality(2))))), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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): log(materialize(toNullable(materialize(_CAST(2, 'LowCardinality(UInt8)'))))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 744 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(toNullable(0), tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(toNullable(0), tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) PREWHERE if(dateDiff('second', toDateTime(toNullable(0), time.1), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 745 out of 1000 SELECT power(3, 2), 56, materialize(POW(POW(toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3, 2), 2), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(3, 2), 56, materialize(POW(POW(toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 3, 2), 2), '01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(toNullable(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 746 out of 1000 SELECT power(3, 2), 56, materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT power(3, 2), materialize(56), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), materialize(63), toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), materialize(63), toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 753 out of 1000 SELECT power(toLowCardinality(3), 2), 56, avg(toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time), log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(3), 2), 56, avg(toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time), log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC 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 power(toLowCardinality(3), 2), 56, avg(toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time), log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt256(63), materialize(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 754 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 757 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 759 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 760 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 761 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 762 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 763 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 764 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 765 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 767 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 768 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 769 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt2. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 770 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 771 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 772 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 773 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 775 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 776 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 777 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 778 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toUInt256(63)), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT power(materialize(3), 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT power(materialize(3), 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toFixedString('ok', 2), 63), toUInt128(63), toNullable(toLowCardinality(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number), 63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(materialize(3), 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toFixedString('ok', 2), 63), toUInt128(63), toNullable(toLowCardinality(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number), 63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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 power(materialize(3), 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(toFixedString('ok', 2), 63), toUInt128(63), toNullable(toLowCardinality(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number), 63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 781 out of 1000 EXPLAIN SYNTAX SELECT power(materialize(3), 2), 56, avg(log(materialize(2)) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(6) PREWHERE pow(power(toLowCardinality(3), 3, 2), 3, 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT power(materialize(3), 2), 56, avg(log(materialize(2)) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(6) PREWHERE pow(power(toLowCardinality(3), 3, 2), 3, 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: While processing pow(pow(toLowCardinality(3), 3, 2), 3, 2): While processing SELECT pow(materialize(3), 2), 56, avg(log(materialize(2)) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(6) PREWHERE pow(pow(toLowCardinality(3), 3, 2), 3, 2) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendPrewhere(DB::ExpressionActionsChain&, bool) @ 0x0000000017733840 18. ./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&) @ 0x000000001773d5d8 19. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 20. ./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 @ 0x0000000017db1e81 21. ./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) @ 0x0000000017daa783 22. ./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) @ 0x0000000017da634c 23. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 25. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 26. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 27. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 28. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 29. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 30. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 782 out of 1000 SELECT power(materialize(3), 2), 56, avg(multiply(log(2))), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(materialize(3), 2), 56, avg(multiply(log(2))), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT power(materialize(3), 2), 56, avg(multiply(log(2))), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 783 out of 1000 SELECT power(materialize(3), 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 784 out of 1000 SELECT power(materialize(3), 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 785 out of 1000 SELECT power(materialize(3), 2), 56, avg(multiply(number)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(materialize(3), 2), 56, avg(multiply(number)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, pow(pow(3, toLowCardinality(toNullable(toUInt256(2))))), time))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 786 out of 1000 SELECT power(materialize(3), 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 787 out of 1000 SELECT 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', toNullable(63), 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 788 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 789 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 790 out of 1000 SELECT power(3, 2), toNullable(56), avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(toLowCardinality(63)) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 793 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 795 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) GROUP BY toString(2, 57, POWER(2, 3), time), if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)), 56 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) GROUP BY toString(2, 57, POWER(2, 3), time), if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)), 56 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 56 is out of bounds. Expected in range [1, 7]. In scope SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) GROUP BY toString(2, 57, POWER(2, 3), time), if(dateDiff(toFixedString('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(2), time)), 56 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 796 out of 1000 SELECT power(3, 2), 56, avg(multiply(log(2))), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), 56, avg(multiply(log(2))), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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 SELECT power(3, 2), 56, avg(multiply(log(2))), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 797 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN PIPELINE header = true SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 799 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT power(3, toNullable(materialize(57)), 2), 56, avg(log(2) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(3, toNullable(materialize(57)), 2), 56, avg(log(2) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, toNullable(materialize(57)), 2), 56, avg(log(2) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 803 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 804 out of 1000 SELECT power(number % 5, 3, 2), 56, avg(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), toUInt128(2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(number % 5, 3, 2), 56, avg(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), toUInt128(2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(number % 5, 3, 2), 56, avg(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt256(0), toUInt128(2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), toLowCardinality(63), 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 805 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(POWER(POW(3, 2), materialize(toUInt256(2))), 2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(3, 2), 56, avg(log(toUInt128(POWER(POW(3, 2), materialize(toUInt256(2))), 2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(3, 2), 56, avg(log(toUInt128(POWER(POW(3, 2), materialize(toUInt256(2))), 2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 806 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 807 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 810 out of 1000 EXPLAIN AST SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 EXPLAIN AST SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 812 out of 1000 EXPLAIN AST SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 813 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WHERE toFixedString(toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number), power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WHERE toFixedString(toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT avg(log(toLowCardinality(2)) * number), power(3, 2), 56, avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WHERE toFixedString(toNullable(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 816 out of 1000 SELECT power(3, 2), toNullable(56), avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT power(3, 2), toNullable(56), avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 818 out of 1000 SELECT power(3, 2), toNullable(56), avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WHERE equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toUInt128(3)), toNullable(2)), 0) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(3, 2), toNullable(56), avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WHERE equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toUInt128(3)), toNullable(2)), 0) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), toNullable(56), avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, 63 FROM numbers(6) WHERE equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(time.2)), pow(materialize(toUInt128(3)), toNullable(2)), 0) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 819 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, 63, toLowCardinality(63) FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT power(3, 2), materialize(toNullable(56)), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT power(3, 2), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT power(3, 2), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 824 out of 1000 SELECT power(3, 2), materialize(toNullable(56)), avg(multiply(number)) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(3, 2), materialize(toNullable(56)), avg(multiply(number)) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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 SELECT power(3, 2), materialize(toNullable(56)), avg(multiply(number)) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 825 out of 1000 SELECT power(2), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(2), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 826 out of 1000 SELECT power(3, toUInt128(2)), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(3, toUInt128(2)), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(3, toUInt128(2)), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 827 out of 1000 SELECT power(3, 2), materialize(toNullable(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 828 out of 1000 SELECT power(3, toUInt128(2)), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', materialize(toNullable(63)), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT power(3, toUInt128(2)), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', materialize(toNullable(63)), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(3, toUInt128(2)), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', materialize(toNullable(63)), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 829 out of 1000 SELECT power(3, 2), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT power(3, 2), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 SELECT power(3, 2), materialize(materialize(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT power(3, 2), materialize(materialize(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WHERE toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(3, 2), materialize(materialize(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WHERE toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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 SELECT power(3, 2), materialize(materialize(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WHERE toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 833 out of 1000 SELECT power(3, 2), materialize(materialize(56)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 SELECT power(3, 2), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 SELECT power(3, 2), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 836 out of 1000 SELECT power(3, 2), materialize(56), avg(log(toLowCardinality(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 840 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 842 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 846 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 847 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 848 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 849 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 850 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 851 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', . Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 853 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 EXPLAIN AST SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 EXPLAIN SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', . Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 860 out of 1000 EXPLAIN QUERY TREE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 861 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 863 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 864 out of 1000 EXPLAIN ESTIMATE SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 865 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt128(63), 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Got boring AST Fuzzing step 868 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT power(3, 2), materialize(56), avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) PREWHERE number % toNullable(3) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT power(3, 2), materialize(56), avg(log(2) * number), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) PREWHERE number % toNullable(3) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f769 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757ce11 8. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 870 out of 1000 SELECT power(2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), materialize(56), avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 871 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT power(3, 2), 56, avg(log(toNullable(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 876 out of 1000 SELECT power(2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(toNullable(2))))))) = toLowCardinality(0) ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(toNullable(2))))))) = toLowCardinality(0) ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(toNullable(2))))))) = toLowCardinality(0) ASC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 877 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(toUInt256(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 878 out of 1000 SELECT power(3, 2), 56, avg(toString(2, 57, POWER(POW(3, 2), 2, max(log(materialize(toNullable(2))) * number) IGNORE NULLS, materialize(3)), time), log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt128(63), toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(3, 2), 56, avg(toString(2, 57, POWER(POW(3, 2), 2, max(log(materialize(toNullable(2))) * number) IGNORE NULLS, materialize(3)), time), log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt128(63), toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 4, should be 2: In scope SELECT power(3, 2), 56, avg(toString(2, 57, POWER(POW(3, 2), 2, max(log(materialize(toNullable(2))) * number) IGNORE NULLS, materialize(3)), time), log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', toUInt128(63), toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 879 out of 1000 SELECT power(if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(tupleElement(toNullable(toLowCardinality(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize('ok'), toString(time)), '01473_trace_log_table_event_start_time_microseconds_test')), time, 2))) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(3, toNullable(2)), 2)))), 3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT power(if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(tupleElement(toNullable(toLowCardinality(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize('ok'), toString(time)), '01473_trace_log_table_event_start_time_microseconds_test')), time, 2))) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(3, toNullable(2)), 2)))), 3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(if(dateDiff(materialize(toLowCardinality('second')), toDateTime(time.1), toDateTime(tupleElement(toNullable(toLowCardinality(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize('ok'), toString(time)), '01473_trace_log_table_event_start_time_microseconds_test')), time, 2))) = toNullable(0), 'ok', toString(POW(toLowCardinality(POW(3, toNullable(2)), 2)))), 3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 880 out of 1000 SELECT power(3, 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 881 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(toUInt128(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(toUInt128(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 883 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, toUInt256(2)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, toUInt256(2)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, toUInt256(2)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 885 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) RESPECT NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(toNullable(3), 2), 56, avg(log(2) * number) RESPECT NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 886 out of 1000 SELECT power(toLowCardinality(toNullable(3)), toUInt256(2)), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(toNullable(3)), toUInt256(2)), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(toLowCardinality(toNullable(3)), toUInt256(2)), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 887 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 888 out of 1000 SELECT power(toLowCardinality(3), toNullable(2)), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(3), toNullable(2)), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(toLowCardinality(3), toNullable(2)), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 889 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT power(toLowCardinality(3), 2), 56, avg(multiply(log(2), round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS), number)) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(toLowCardinality(3), 2), 56, avg(multiply(log(2), round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS), number)) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT power(toLowCardinality(3), 2), 56, avg(multiply(log(2), round(avg(log(toNullable(materialize(2))) * number) IGNORE NULLS), number)) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 891 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, toLowCardinality(2)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, toLowCardinality(2)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 892 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 893 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, materialize(2)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, materialize(2)), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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): pow(3, materialize(2)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 894 out of 1000 SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), 63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), 63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(toLowCardinality(toNullable(3)), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(pow(materialize(power(toLowCardinality(3), 3, 2), 3), toNullable(2)), 63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 895 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), toNullable(toUInt256(6))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), toNullable(toUInt256(6))) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 897 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 898 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 899 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 900 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 901 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 902 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(materialize(3), 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(materialize(3), 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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): pow(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 903 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(2) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT power(toNullable(3), 2), 56, avg(log(toUInt256(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 SELECT power(3, 2), 56, avg(log(toUInt256(2)) * number) IGNORE NULLS, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 SELECT power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 908 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 909 out of 1000 SELECT power(2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 910 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), materialize(6)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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(6). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 911 out of 1000 SELECT power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(toUInt128(3), 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(toUInt128(3), 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(toUInt128(3), 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 912 out of 1000 SELECT power(materialize(toNullable(3)), materialize(toNullable(2))), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Error on processing query 'SELECT power(materialize(toNullable(3)), materialize(toNullable(2))), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(materialize(toNullable(3)), materialize(toNullable(2))), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 913 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 914 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 916 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, materialize(toLowCardinality(2))), 6) GROUP BY POWER(POW(3, 2), 2), number % materialize(5) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, materialize(toLowCardinality(2))), 6) GROUP BY POWER(POW(3, 2), 2), number % materialize(5) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC 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): pow(3, materialize(_CAST(2, 'LowCardinality(UInt8)'))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 917 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) GROUP BY POWER(POW(3, 2), 2), modulo(number) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) GROUP BY POWER(POW(3, 2), 2), modulo(number) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) GROUP BY POWER(POW(3, 2), 2), modulo(number) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 918 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, 2), time)), 6) GROUP BY POWER(POW(toUInt128(3), 2), 2), number % 5 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, 2), time)), 6) GROUP BY POWER(POW(toUInt128(3), 2), 2), number % 5 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, pow(3, 2), time))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 919 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 920 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2), 6) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 921 out of 1000 SELECT power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(toNullable(63)), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 SELECT POWER(toNullable(3)), power(materialize(toNullable(max(log(toUInt256(2)) * number), 3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(materialize(63)), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT POWER(toNullable(3)), power(materialize(toNullable(max(log(toUInt256(2)) * number), 3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(materialize(63)), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(toNullable(3)), power(materialize(toNullable(max(log(toUInt256(2)) * number), 3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(materialize(63)), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 924 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), materialize(toNullable(2))), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) WHERE toLowCardinality(toUInt128(3)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), materialize(toNullable(2))), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) WHERE toLowCardinality(toUInt128(3)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 925 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(toLowCardinality(3), 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(toLowCardinality(3), 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 926 out of 1000 EXPLAIN PIPELINE SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(toNullable(0), 3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'EXPLAIN PIPELINE SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(toNullable(0), 3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(materialize(2), toNullable(3)), power(materialize(toNullable(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(toNullable(0), 3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 927 out of 1000 SELECT POWER(2, toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(toNullable(toNullable(0)), pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT POWER(2, toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(toNullable(toNullable(0)), pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 928 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT POWER(2, toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(pow(materialize(3), toNullable(toNullable(2))), 3, 2), 2), toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 2) % number WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT POWER(2, toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(pow(materialize(3), toNullable(toNullable(2))), 3, 2), 2), toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 2) % number WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(2, toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(pow(materialize(3), toNullable(toNullable(2))), 3, 2), 2), toString(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)), 2) % number WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 930 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT POWER(materialize(2), toNullable(3)), POWER(POW(toFixedString(3, POW(3, 2), toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), 3, 2), 2), power(materialize(toUInt128(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, toNullable(2))) GROUP BY POWER(POW(3, toLowCardinality(2)), round(avg(multiply(tupleElement(time, toLowCardinality(1)), log(toNullable(2)), number)) IGNORE NULLS), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT POWER(materialize(2), toNullable(3)), POWER(POW(toFixedString(3, POW(3, 2), toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 57), 3, 2), 2), power(materialize(toUInt128(3)), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, toNullable(2))) GROUP BY POWER(POW(3, toLowCardinality(2)), round(avg(multiply(tupleElement(time, toLowCardinality(1)), log(toNullable(2)), number)) IGNORE NULLS), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 932 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(materialize(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Got boring AST Fuzzing step 933 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 SELECT POWER(materialize(2), toNullable(3)), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 936 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT POWER(2, 3), power(3, log(toUInt128(toUInt256(2))), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(63) FROM numbers(pow(3, toLowCardinality(2))) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(2, 3), power(3, log(toUInt128(toUInt256(2))), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(63) FROM numbers(pow(3, toLowCardinality(2))) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 938 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, tupleElement(time, 2), 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, tupleElement(time, 2), 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'pow(3, time.2, 2)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 939 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), 2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), 2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), 2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 940 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) PREWHERE toUInt256(toUInt256(3)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) PREWHERE toUInt256(toUInt256(3)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 941 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 942 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(POWER(3, materialize(materialize(2))), 63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(POWER(3, materialize(materialize(2))), 63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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 POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(POWER(3, materialize(materialize(2))), 63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 943 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 944 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 945 out of 1000 SELECT POWER(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, 2), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 946 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, toNullable(63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(3, toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(multiply(number), 63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(multiply(number), 63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) 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 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(multiply(number), 63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 949 out of 1000 SELECT POWER(materialize(2), 3), power(POWER(POW(pow(materialize(toNullable(3)), toNullable(toNullable(2))), 3, toLowCardinality(toUInt256(2)))), 3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(materialize(2), 3), power(POWER(POW(pow(materialize(toNullable(3)), toNullable(toNullable(2))), 3, toLowCardinality(toUInt256(2)))), 3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(materialize(2), 3), power(POWER(POW(pow(materialize(toNullable(3)), toNullable(toNullable(2))), 3, toLowCardinality(toUInt256(2)))), 3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(63), materialize(toNullable(63)) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 2), number % 5 WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 950 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(63), toNullable(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), 2), 2), modulo(POW(2), number, 5) WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Error on processing query 'SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(63), toNullable(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), 2), 2), modulo(POW(2), number, 5) WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), toNullable(63), toNullable(63) FROM numbers(pow(3, 2)) GROUP BY POWER(POW(toNullable(3), 2), 2), modulo(POW(2), number, 5) WITH ROLLUP WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 951 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(toNullable(63)) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(toNullable(63)) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 953 out of 1000 SELECT POWER(materialize(materialize(toUInt256(2))), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(toNullable(63)) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Error on processing query 'SELECT POWER(materialize(materialize(toUInt256(2))), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(toNullable(63)) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(materialize(materialize(toUInt256(2))), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(toNullable(63)) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 954 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, materialize(toNullable(63)) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 955 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT POWER(materialize(2), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Got boring AST Fuzzing step 957 out of 1000 SELECT POWER(materialize(2), 3), power(toNullable(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT POWER(materialize(2), 3), power(toNullable(3), materialize(2)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT POWER(materialize(2), 3), power(toNullable(3), materialize(2)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)) DESC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT POWER(materialize(2), 3), power(toNullable(3), materialize(2)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)) DESC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(materialize(2), 3), power(toNullable(3), materialize(2)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY pow(materialize(toLowCardinality(3)), toNullable(3), materialize(2)) DESC, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 960 out of 1000 SELECT POWER(materialize(2), 3), power(toNullable(3), materialize(2)), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, toNullable(63) FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 961 out of 1000 SELECT POWER(2, 3), power(toNullable(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 SELECT POWER(2, 3), power(toNullable(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 963 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT POWER(2, toUInt128(6), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'SELECT POWER(2, toUInt128(6), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(2, toUInt128(6), 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 965 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(toLowCardinality(toUInt256(3)), 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST Error on processing query 'SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(toLowCardinality(toUInt256(3)), 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(toLowCardinality(toUInt256(3)), 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 966 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Got boring AST Fuzzing step 967 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 EXPLAIN PIPELINE SELECT POWER(2, 3), power(3, 2), pow(pow(3, 2), toNullable(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT POWER(2, 3), power(3, 2), pow(pow(3, 2), toNullable(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(2, 3), power(3, 2), pow(pow(3, 2), toNullable(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 969 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 970 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 971 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 972 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC Got boring AST Fuzzing step 973 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 EXPLAIN PIPELINE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 EXPLAIN PIPELINE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 977 out of 1000 EXPLAIN SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN ESTIMATE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 EXPLAIN ESTIMATE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 980 out of 1000 EXPLAIN ESTIMATE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 981 out of 1000 EXPLAIN PIPELINE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 EXPLAIN QUERY TREE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 EXPLAIN PIPELINE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 EXPLAIN PIPELINE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 985 out of 1000 EXPLAIN ESTIMATE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 EXPLAIN ESTIMATE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 987 out of 1000 EXPLAIN ESTIMATE SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 988 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Got boring AST Fuzzing step 990 out of 1000 SELECT POWER(2, 3), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT POWER(2, 3), materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), power(3, 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt256(toNullable(2)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT POWER(2, 3), materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), power(3, 2), toNullable(56), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt256(2), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT POWER(2, 3), materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), power(toLowCardinality(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), 63, 63 FROM numbers(pow(3, 2)) PREWHERE POWER(3, toNullable(materialize(2))) GROUP BY log(2) * number, 2, toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC Error on processing query 'SELECT POWER(2, 3), materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), power(toLowCardinality(3), 2), 56, '01473_query_thread_log_table_event_start_time_microseconds_test', toLowCardinality(63), 63, 63 FROM numbers(pow(3, 2)) PREWHERE POWER(3, toNullable(materialize(2))) GROUP BY log(2) * number, 2, toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 994 out of 1000 SELECT POWER(2, 3), materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), power(3, 2), toNullable(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt256(toUInt128(2)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 995 out of 1000 SELECT POWER(2, 3), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), power(3, 2), toNullable(toNullable(56)), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt256(toUInt128(2)), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 SELECT POWER(2, 3), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), power(3, 2), toNullable(56), '01473_query_thread_log_table_event_start_time_microseconds_test', 63, 63, 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt128(2), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 997 out of 1000 SELECT POWER(2, 3), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), power(3, 2), toNullable(56), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt128(2), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT POWER(2, 3), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), power(3, 2), 56, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt128(2), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT POWER(2, 3), toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test'), power(3, 2), 56, toNullable('01473_query_thread_log_table_event_start_time_microseconds_test'), 63, toNullable(63), 63 FROM numbers(pow(3, 2)) GROUP BY log(2) * number, toUInt128(2), toLowCardinality(toNullable(2)) WITH TOTALS ORDER BY round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) ASC NULLS FIRST 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(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 2 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 3 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(materialize(toUInt256(10000000))) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number), 6) AS k FROM numbers(materialize(toUInt256(10000000))) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC': 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('10000000', 'UInt256')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 4 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 5 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 6 out of 1000 EXPLAIN AST optimize = true SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN AST optimize = true SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 7 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 8 out of 1000 SELECT round(avg(multiply(toNullable(toNullable(63)), log(2), number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(number, dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 2) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(multiply(toNullable(toNullable(63)), log(2), number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(number, dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 2) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(toNullable(toNullable(63)), log(2), number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(number, dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), 2) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 9 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 12 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % toLowCardinality(2)) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % toLowCardinality(2)) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % toLowCardinality(2)) * (number % 3), number % 3, number % toNullable(. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 14 out of 1000 SELECT round(avg(power(toLowCardinality(toNullable(3)), 2), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(power(toLowCardinality(toNullable(3)), 2), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 15 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2) ASC, k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 19. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 16 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 17 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toNullable(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 18 out of 1000 SELECT materialize(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT materialize(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 20 out of 1000 SELECT materialize(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 22 out of 1000 SELECT materialize(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 23 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 25 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 26 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test')), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test')), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test')), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 29 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 30 out of 1000 SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 31 out of 1000 SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 32 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 33 out of 1000 SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 materialize('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 34 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 35 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(POWER(3, 2), 2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(POWER(3, 2), 2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(POWER(3, 2), 2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 37 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 40 out of 1000 SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(toLowCardinality(10000000))) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(toLowCardinality(10000000))) WITH TOTALS ORDER BY k 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(_CAST(10000000, 'LowCardinality(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 41 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time)), round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 43 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 45 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 47 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 48 out of 1000 SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(materialize(2)) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63), round(avg(log(materialize(2)) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 49 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(avg(log(2) * number) IGNORE NULLS, toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 6) AS k FROM numbers(clear_column__fuzz_11, 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(avg(log(2) * number) IGNORE NULLS, toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 6) AS k FROM numbers(clear_column__fuzz_11, 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'clear_column__fuzz_11' while processing query: 'clear_column__fuzz_11', required columns: 'clear_column__fuzz_11' 'clear_column__fuzz_11'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 50 out of 1000 SELECT '01473_query_thread_log_table_event_start_time_microseconds_test', 63, round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 53 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 54 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 55 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(FixedString(57)). In query SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE toNullable(toFixedString(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 56 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 57 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 59 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 60 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 61 out of 1000 SELECT round(avg(log(POWER(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(POWER(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(POWER(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 62 out of 1000 SELECT round(avg(multiply(clear_column__fuzz_3, log(materialize(2)), number)) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(multiply(clear_column__fuzz_3, log(materialize(2)), number)) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_3' in scope SELECT round(avg(multiply(clear_column__fuzz_3, log(materialize(2)), number)) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 63 out of 1000 SELECT round(avg(log(materialize(toString(57, POWER(toNullable(3), 2), time), 2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(toString(57, POWER(toNullable(3), 2), time), 2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(materialize(toString(57, POWER(toNullable(3), 2), time), 2)) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 64 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 67 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 68 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY k 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 69 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 70 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 72 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 SELECT round(avg(POW(3, toLowCardinality(2)), log(2) * number) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(POW(3, toLowCardinality(2)), log(2) * number) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 75 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 78 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 79 out of 1000 SELECT round(avg(multiply(round(avg(log(toNullable(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(2), number)) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(multiply(round(avg(log(toNullable(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(2), number)) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(round(avg(log(toNullable(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(2), number)) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 80 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 82 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 83 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT round(avg(multiply(number)) IGNORE NULLS, materialize(toLowCardinality(6))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 84 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 87 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 88 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 89 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 90 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toNullable(63), 10000000) WHERE materialize(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(toNullable(63), 10000000) WHERE materialize(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 91 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 92 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT round(toUInt256(0), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(toUInt256(0), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'round'. Expected 1 mandatory argument and 1 optional argument, got 3 arguments: In scope SELECT round(toUInt256(0), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 94 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 95 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 96 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 98 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 100 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 101 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 102 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 103 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 104 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 105 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 106 out of 1000 SELECT round(6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 107 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 110 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 111 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 113 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 114 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(toNullable(6))), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 119 out of 1000 SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0) ASC, k ASC Error on processing query 'SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0) ASC, k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 120 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, toLowCardinality(6)), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 121 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 EXPLAIN PIPELINE compact = true SELECT round(avg(log(2) * number) RESPECT NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT round(avg(log(2) * number) RESPECT NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 123 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(multiply(log(2))) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 125 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 126 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 127 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 round(avg(log(2) * number) IGNORE NULLS, 6), round(POW(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 128 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 129 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 130 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 132 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 135 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 136 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 137 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 138 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 139 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 142 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 144 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 145 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(max(log(materialize(toNullable(2))) * number) IGNORE NULLS, 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(max(log(materialize(toNullable(2))) * number) IGNORE NULLS, 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(max(log(materialize(toNullable(2))) * number) IGNORE NULLS, 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 146 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 150 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 151 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 152 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 153 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 154 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 155 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 156 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 157 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 158 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 159 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 161 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 162 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 163 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 165 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 166 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 168 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 169 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 170 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 171 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 175 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 176 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 177 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 180 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 181 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 182 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 183 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 184 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 185 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 188 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 190 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 193 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS, 6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 195 out of 1000 SELECT round(6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT round(6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 197 out of 1000 SELECT round(6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 198 out of 1000 SELECT round(6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 199 out of 1000 SELECT round(6), round(avg(power(toNullable(3), 2), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(6), round(avg(power(toNullable(3), 2), log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 200 out of 1000 SELECT round(toLowCardinality(6)), round(avg(log(log(toNullable(materialize(toLowCardinality(2)))) * number, 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(toLowCardinality(6)), round(avg(log(log(toNullable(materialize(toLowCardinality(2)))) * number, 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(toLowCardinality(6)), round(avg(log(log(toNullable(materialize(toLowCardinality(2)))) * number, 2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 201 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE toString(57, POWER(toLowCardinality(3), 2), time) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE toString(57, POWER(toLowCardinality(3), 2), time) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(6), round(avg(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) WHERE toString(57, POWER(toLowCardinality(3), 2), time) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 202 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 205 out of 1000 SELECT round(6), round(6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(6), round(6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 206 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 207 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 208 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 SELECT round(materialize(6)), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT round(materialize(6)), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 SELECT round(materialize(6)), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) PREWHERE dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0 WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) PREWHERE dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0 WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) PREWHERE dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, materialize(toLowCardinality(1)))), toDateTime(time.2)) = 0 WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 213 out of 1000 SELECT round(materialize(6)), round(avg(multiply(log(2))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(materialize(6)), round(avg(multiply(log(2))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT round(materialize(6)), round(avg(multiply(log(2))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 214 out of 1000 SELECT round(materialize(6)), round(avg(log(materialize(toLowCardinality(toUInt256(2)))) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT round(materialize(6)), round(avg(log(materialize(toLowCardinality(toUInt256(2)))) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 216 out of 1000 SELECT round(materialize(6)), round(avg(log(materialize(toLowCardinality(toUInt256(2)))) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 217 out of 1000 SELECT round(materialize(6)), round(avg(log(toLowCardinality(toUInt256(2))) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT round(6), round(avg(log(toLowCardinality(2)) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT round(6), round(avg(log(toLowCardinality(2)) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 222 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 223 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 225 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 226 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 227 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 228 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 229 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 230 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 231 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 232 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 233 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 234 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 235 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 236 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 237 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 238 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 240 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 241 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 243 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 244 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 245 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 247 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 248 out of 1000 EXPLAIN PIPELINE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 249 out of 1000 EXPLAIN AST SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN AST SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 251 out of 1000 EXPLAIN AST SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 252 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 253 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 254 out of 1000 EXPLAIN AST SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 255 out of 1000 EXPLAIN AST SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 256 out of 1000 EXPLAIN AST SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 257 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 258 out of 1000 EXPLAIN ESTIMATE SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN SYNTAX SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN SYNTAX SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 261 out of 1000 EXPLAIN SYNTAX SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 262 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 263 out of 1000 EXPLAIN SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 265 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 268 out of 1000 SELECT round(6), round(avg(log(2) * number), toNullable(2), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(6), round(avg(log(2) * number), toNullable(2), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'round'. Expected 1 mandatory argument and 1 optional argument, got 3 arguments: In scope SELECT round(6), round(avg(log(2) * number), toNullable(2), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 269 out of 1000 SELECT round(6), round(avg(multiply(toLowCardinality(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), 'ok', toUInt256(2)), log(2), number)), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(6), round(avg(multiply(toLowCardinality(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), 'ok', toUInt256(2)), log(2), number)), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(6), round(avg(multiply(toLowCardinality(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)), 'ok', toUInt256(2)), log(2), number)), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 270 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 271 out of 1000 SELECT round(6), round(avg(log(2) * number), toUInt128(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(6), round(avg(log(2) * number), toUInt128(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': 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: UInt128: In scope SELECT round(6), round(avg(log(2) * number), toUInt128(6)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 272 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 273 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 274 out of 1000 SELECT round(6), round(avg(multiply(log(2))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(6), round(avg(multiply(log(2))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(6), round(avg(multiply(log(2))), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 275 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 276 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 277 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 278 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 279 out of 1000 SELECT round(6), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(6), round(avg(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 280 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toDateTime(tupleElement(time, 2)) ASC, k DESC NULLS FIRST Error on processing query 'SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toDateTime(tupleElement(time, 2)) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toDateTime(time.2) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 281 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), clear_column__fuzz_7, tupleElement(time, 1), y WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), clear_column__fuzz_7, tupleElement(time, 1), y WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_7' in scope SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), clear_column__fuzz_7, time.1, y WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 282 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 283 out of 1000 SELECT round(6), round(avg(log(2) * number), 6) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 284 out of 1000 SELECT round(6) FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(6) FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT round(6) FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 285 out of 1000 SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 SELECT round(6), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(6), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 287 out of 1000 SELECT round(6), round(avg(toString(POWER(2, 3), time), log(POWER(POW(2)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(6), round(avg(toString(POWER(2, 3), time), log(POWER(POW(2)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(6), round(avg(toString(POWER(2, 3), time), log(POWER(POW(2)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 288 out of 1000 SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 289 out of 1000 SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 290 out of 1000 SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 291 out of 1000 SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 292 out of 1000 SELECT round(6), round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 293 out of 1000 SELECT round(6), round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 294 out of 1000 SELECT round(6), round(avg(multiply(number)) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(6), round(avg(multiply(number)) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(6), round(avg(multiply(number)) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 295 out of 1000 SELECT round(6), round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), toNullable(10000000)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(6), round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), toNullable(10000000)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(6), round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), toNullable(10000000)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 296 out of 1000 SELECT round(6), round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 297 out of 1000 SELECT round(6), round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 SELECT round(materialize(6)), round(avg(log(materialize(toNullable(toNullable(63), 2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(materialize(6)), round(avg(log(materialize(toNullable(toNullable(63), 2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC 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 round(materialize(6)), round(avg(log(materialize(toNullable(toNullable(63), 2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 299 out of 1000 SELECT round(6), round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 SELECT round(6), round(avg(multiply(clear_column__fuzz_26, log(toNullable(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(6), round(avg(multiply(clear_column__fuzz_26, log(toNullable(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_26' in scope SELECT round(6), round(avg(multiply(clear_column__fuzz_26, log(toNullable(2)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 301 out of 1000 SELECT round(6), round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 302 out of 1000 SELECT round(6), round(avg(log(toNullable(2)) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(6), round(avg(log(toNullable(2)) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 303 out of 1000 SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(max(log(2) * number), 6) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(max(log(2) * number), 6) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Aggregate function max(log(2) * number) is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 306 out of 1000 SELECT toLowCardinality(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT 0, round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 SELECT 0, round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 309 out of 1000 SELECT 0, round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 310 out of 1000 SELECT 0, round(materialize(6)), round(avg(log(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 0, round(materialize(6)), round(avg(log(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 0, round(materialize(6)), round(avg(log(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 311 out of 1000 SELECT 0, round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 312 out of 1000 SELECT 0, round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 0, round(6), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 314 out of 1000 SELECT 0, round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT 0, round(6), round(avg(multiply(POW(2), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 0, round(6), round(avg(multiply(POW(2), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 0, round(6), round(avg(multiply(POW(2), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 316 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2), time), 10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2), time), 10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 4, should be 2: In scope SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toString(power(POWER(POW('01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), 3, 2), time), 10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 317 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 319 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 320 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)), avg(log(toUInt128(2)) * number) IGNORE NULLS WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT materialize(0), round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)), avg(log(toUInt128(2)) * number) IGNORE NULLS WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(0), round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toNullable(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toLowCardinality(2)), toString(time)), avg(log(toUInt128(2)) * number) IGNORE NULLS WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 321 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 322 out of 1000 EXPLAIN PIPELINE SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 EXPLAIN PIPELINE SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 324 out of 1000 EXPLAIN PIPELINE SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 325 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 327 out of 1000 SELECT materialize(0), round(6), round(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT materialize(0), round(6), round(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(0), round(6), round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, materialize(toUInt256(57)), POWER(POW(3, 2)), time)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 328 out of 1000 SELECT materialize(0), round(6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 329 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 SELECT 0, round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT 0, round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 332 out of 1000 SELECT toNullable(0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 SELECT toNullable(0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 334 out of 1000 SELECT toNullable(POWER(3, toNullable(2)), 0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toNullable(POWER(3, toNullable(2)), 0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT toNullable(POWER(3, toNullable(2)), 0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 335 out of 1000 SELECT toNullable(0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 336 out of 1000 SELECT toNullable(0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 337 out of 1000 SELECT toNullable(0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT toNullable(0), round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 339 out of 1000 SELECT 0, round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT 0, round(materialize(6)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 341 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 SELECT 0, round(6), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 0, round(6), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT 0, round(6), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 344 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 345 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 347 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 348 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 349 out of 1000 SELECT 0, round(6), round(toLowCardinality(toNullable(3)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 0, round(6), round(toLowCardinality(toNullable(3)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': 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 0, round(6), round(toLowCardinality(toNullable(3)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 350 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 351 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 352 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 353 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 354 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 356 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN AST SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 359 out of 1000 EXPLAIN AST SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 360 out of 1000 EXPLAIN QUERY TREE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 EXPLAIN QUERY TREE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 362 out of 1000 EXPLAIN AST SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 EXPLAIN ESTIMATE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN SYNTAX SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 366 out of 1000 EXPLAIN SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 367 out of 1000 EXPLAIN SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 368 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 370 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 371 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 372 out of 1000 EXPLAIN PIPELINE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 373 out of 1000 EXPLAIN QUERY TREE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('0'): 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 375 out of 1000 EXPLAIN ESTIMATE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 EXPLAIN ESTIMATE SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 377 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('0'): 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 378 out of 1000 EXPLAIN AST SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 EXPLAIN AST SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 380 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 382 out of 1000 SELECT 0, round(6), round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time) ASC, k DESC NULLS LAST Error on processing query 'SELECT 0, round(6), round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 0, round(6), round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 383 out of 1000 SELECT 0, round(6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 384 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 386 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 387 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(toFixedString('ok', toLowCardinality(2)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 0, round(log(toUInt256(2)), 6), round(toFixedString('ok', toLowCardinality(2)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'x' to function 'round'. Expected: A number to round, got: FixedString(2): In scope SELECT 0, round(log(toUInt256(2)), 6), round(toFixedString('ok', toLowCardinality(2)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 388 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 389 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 390 out of 1000 SELECT 0, round(log(toString(57, POWER(materialize(3), 2), time), toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 0, round(log(toString(57, POWER(materialize(3), 2), time), toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 0, round(log(toString(57, POWER(materialize(3), 2), time), toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 391 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT 0, round(log(toUInt256(2)), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT 0, round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT 0, round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 395 out of 1000 SELECT 0, round(log(2), 6), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 0, round(log(2), 6), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 396 out of 1000 SELECT 0, round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT 0, round(log(toNullable(2)), 6), round(avg(toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 0, round(log(toNullable(2)), 6), round(avg(toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 0, round(log(toNullable(2)), 6), round(avg(toString(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 398 out of 1000 SELECT round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT round(log(toLowCardinality(toNullable(2))), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 SELECT round(log(toLowCardinality(toNullable(2))), 6), round(toNullable(toNullable(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(log(toLowCardinality(toNullable(2))), 6), round(toNullable(toNullable(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': 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(log(toLowCardinality(toNullable(2))), 6), round(toNullable(toNullable(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 401 out of 1000 SELECT round(log(toNullable(2)), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT round(log(toNullable(2)), 6), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(log(toNullable(2)), 6), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(log(toNullable(2)), 6), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 403 out of 1000 SELECT round(log(toNullable(2)), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 404 out of 1000 SELECT round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 SELECT round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 406 out of 1000 SELECT round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 407 out of 1000 SELECT round(log(2), 6), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 408 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 410 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 411 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(round(max(log(materialize(2)) * number) IGNORE NULLS), 10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(round(max(log(materialize(2)) * number) IGNORE NULLS), 10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max(multiply(log(materialize(2)), number)) IGNORE NULLS is found in wrong place in query: While processing max(log(materialize(2)) * number) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752319 7. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 8. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863e2 9. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 10. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 11. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 12. ./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 @ 0x0000000015ea812a 13. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 14. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 412 out of 1000 SELECT round(log(toUInt128(2))), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT round(log(toUInt128(2))), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 414 out of 1000 SELECT round(log(toUInt128(2))), round(avg(log(2) * number)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(log(toUInt128(2))), round(avg(log(2) * number)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 415 out of 1000 SELECT round(log(toUInt128(2))), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 416 out of 1000 SELECT round(log(toUInt128(2))), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 417 out of 1000 SELECT round(log(2)), 'second', round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), toLowCardinality(toNullable(0)), log(toLowCardinality(2)) * number WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(log(2)), 'second', round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), toLowCardinality(toNullable(0)), log(toLowCardinality(2)) * number WITH TOTALS ORDER BY k 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 SELECT round(log(2)), 'second', round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(toNullable(0)), 'ok', toString(POW(toLowCardinality(2)), time)), toLowCardinality(toNullable(0)), log(toLowCardinality(2)) * number WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 418 out of 1000 SELECT round(log(toUInt128(2))), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 419 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 421 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 424 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 425 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 426 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 427 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(2)), log(2), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(materialize(toLowCardinality(2))))) = materialize(0), POW(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(2)), log(2), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(materialize(toLowCardinality(2))))) = materialize(0), POW(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(2)), log(2), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(materialize(toLowCardinality(2))))) = materialize(0), POW(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 428 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 429 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(avg(log(2) * number), 6) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(avg(log(2) * number), 6) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(2) * number) is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 430 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 431 out of 1000 SELECT round(log(2)), round(round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(log(2)), round(round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': 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(log(2)), round(round(avg(log(materialize(toUInt128(2))) * number) IGNORE NULLS), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 432 out of 1000 SELECT round(log(toUInt128(0), 2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(log(toUInt128(0), 2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(log(toUInt128(0), 2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 433 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 435 out of 1000 SELECT round(log(2)), round(avg(toString(toNullable(2)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(log(2)), round(avg(toString(toNullable(2)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 436 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 437 out of 1000 EXPLAIN PIPELINE compact = true SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 438 out of 1000 EXPLAIN AST optimize = true SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN AST optimize = true SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 439 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 EXPLAIN SELECT round(log(2)), round(toDateTime(tupleElement(time, toUInt128(1))), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN SELECT round(log(2)), round(toDateTime(tupleElement(time, toUInt128(1))), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(log(2)), round(toDateTime(tupleElement(time, toUInt128(1))), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 441 out of 1000 SELECT round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 442 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 444 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 445 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 446 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 448 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 449 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 450 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toNullable'): toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 453 out of 1000 EXPLAIN SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 454 out of 1000 EXPLAIN SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 455 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT toLowCardinality(toUInt256(3)), round(1023, log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(toUInt256(3)), round(1023, log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': 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 toLowCardinality(toUInt256(3)), round(1023, log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 457 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 459 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 460 out of 1000 EXPLAIN AST SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 461 out of 1000 EXPLAIN PIPELINE SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 EXPLAIN ESTIMATE SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 465 out of 1000 SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 466 out of 1000 SELECT toNullable(toLowCardinality(toUInt256(3))), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 467 out of 1000 SELECT toNullable(toUInt256(3)), round(log(2)), round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toNullable(toUInt256(3)), round(log(2)), round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 468 out of 1000 SELECT toLowCardinality(toUInt256(3)), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 471 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 472 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toUInt256(3), round(log(2)), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT toUInt256(3), round(log(2)), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 473 out of 1000 EXPLAIN PIPELINE compact = true SELECT toUInt256(3), round(log(power(materialize(toLowCardinality(toNullable(3))), 2), 2)), round(avg(log(2) * number)) AS k FROM numbers(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT toUInt256(3), round(log(power(materialize(toLowCardinality(toNullable(3))), 2), 2)), round(avg(log(2) * number)) AS k FROM numbers(toNullable(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 10000000) WITH TOTALS ORDER BY k ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 474 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 475 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 476 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 479 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 481 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 482 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 483 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 484 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 485 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 488 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 491 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('toUInt256'): toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 492 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 EXPLAIN ESTIMATE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 494 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 497 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 501 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 503 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('toUInt256'): toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 504 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 505 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 506 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 508 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 509 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 510 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 511 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 512 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 513 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt32)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 516 out of 1000 EXPLAIN SYNTAX SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 EXPLAIN QUERY TREE SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 520 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 EXPLAIN AST SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 523 out of 1000 EXPLAIN SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 SELECT toUInt256(3), round(log(toLowCardinality(toNullable(2)))), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toUInt256(3), round(log(toLowCardinality(toNullable(2)))), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 526 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 527 out of 1000 SELECT toUInt256(3), round(log(2)), round(avg(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toUInt256(3), round(log(2)), round(avg(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 528 out of 1000 SELECT 3, round(log(2)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 530 out of 1000 SELECT 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 531 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 532 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 533 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 535 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 536 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 539 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 541 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 36 ('materialize'): materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 543 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 544 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 546 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 548 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 549 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 551 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 552 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 553 out of 1000 SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT materialize(3), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 556 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 557 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 558 out of 1000 SELECT materialize(3), round(avg(multiply(log(toNullable(toUInt256(2))) * number, log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(3), round(avg(multiply(log(toNullable(toUInt256(2))) * number, log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT materialize(3), round(avg(multiply(log(toNullable(toUInt256(2))) * number, log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 559 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE 65537 WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE 65537 WITH TOTALS ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 560 out of 1000 SELECT materialize(3), round(materialize(toNullable(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(3), round(materialize(toNullable(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': 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 materialize(3), round(materialize(toNullable(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 561 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 562 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 565 out of 1000 SELECT materialize(toFixedString('ok', toNullable(2)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(toFixedString('ok', toNullable(2)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 materialize(toFixedString('ok', toNullable(2)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 566 out of 1000 SELECT materialize(3), round(avg(log(toUInt256(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT materialize(3), round(avg(log(toUInt256(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 567 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 568 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 570 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 571 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 572 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 573 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 574 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 575 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 576 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 577 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 EXPLAIN SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 EXPLAIN SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 580 out of 1000 EXPLAIN SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 581 out of 1000 EXPLAIN SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 582 out of 1000 EXPLAIN SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 583 out of 1000 EXPLAIN SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 584 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 585 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 586 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 587 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(materialize(toLowCardinality(2))), POW(3) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(materialize(toLowCardinality(2))), POW(3) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(materialize(toLowCardinality(2))), POW(3) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 588 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 589 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 591 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 593 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 596 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 597 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 598 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 599 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 600 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 601 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 602 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 603 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 605 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 606 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(POWER(toLowCardinality(3), materialize(toNullable(2))), 10000000) WITH TOTALS ORDER BY POWER(materialize(2), toNullable(3)) ASC NULLS FIRST, k DESC Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(POWER(toLowCardinality(3), materialize(toNullable(2))), 10000000) WITH TOTALS ORDER BY POWER(materialize(2), toNullable(3)) ASC NULLS FIRST, k 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): pow(_CAST(3, 'LowCardinality(UInt8)'), materialize(_CAST(2, 'Nullable(UInt8)'))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 607 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 609 out of 1000 SELECT round(avg(log(pow(3, toNullable(2)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(log(pow(3, toNullable(2)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(pow(3, toNullable(2)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 610 out of 1000 SELECT round(avg(multiply((number % 5) * (number % 5), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(multiply((number % 5) * (number % 5), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply((number % 5) * (number % 5), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 611 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE materialize(toUInt128(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE materialize(toUInt128(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column materialize(_CAST('3'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 612 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 613 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 614 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 615 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 616 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE max(log(toLowCardinality(2)) * number) IGNORE NULLS WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE max(log(toLowCardinality(2)) * number) IGNORE NULLS WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function max(log(toLowCardinality(2)) * number) IGNORE NULLS is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 617 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 618 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 619 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 620 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 621 out of 1000 SELECT materialize(toUInt256(3)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 SELECT materialize(toUInt256(3)), round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 SELECT toUInt256(3), round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 624 out of 1000 SELECT toUInt256(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 SELECT toUInt256(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT toUInt256(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 627 out of 1000 SELECT toUInt256(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 628 out of 1000 SELECT toUInt256(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 629 out of 1000 SELECT toUInt256(3), round(avg(log(round(max(log(pow(toLowCardinality(materialize(toUInt128(3))), 2), materialize(2)) * number) IGNORE NULLS), 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toUInt256(3), round(avg(log(round(max(log(pow(toLowCardinality(materialize(toUInt128(3))), 2), materialize(2)) * number) IGNORE NULLS), 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT toUInt256(3), round(avg(log(round(max(log(pow(toLowCardinality(materialize(toUInt128(3))), 2), materialize(2)) * number) IGNORE NULLS), 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 630 out of 1000 SELECT toUInt256(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 631 out of 1000 SELECT toUInt256(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 SELECT toUInt256(materialize(3)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 634 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(toUInt128(2))) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(toUInt128(2))) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(toUInt128(2))) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 635 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 637 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 638 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 639 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 640 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 641 out of 1000 EXPLAIN SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 643 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 646 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 647 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 648 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 650 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 651 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 652 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 653 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 654 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 655 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 657 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 658 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 659 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 660 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 662 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 663 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 666 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 668 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 669 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 673 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 676 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('materialize'): materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 677 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 679 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 680 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 681 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 682 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 683 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 684 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 685 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 686 out of 1000 EXPLAIN SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 689 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 690 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 691 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 692 out of 1000 EXPLAIN SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 EXPLAIN SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 694 out of 1000 EXPLAIN AST SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 EXPLAIN SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 700 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 701 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 703 out of 1000 SELECT materialize(3), round(avg(round(max(log(toNullable(2)) * number) IGNORE NULLS), log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time) ASC NULLS FIRST, k ASC Error on processing query 'SELECT materialize(3), round(avg(round(max(log(toNullable(2)) * number) IGNORE NULLS), log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY toString(power(POWER(POW(3, 2), POW(3, 2), 2), toNullable(3), 2), time) ASC NULLS FIRST, k ASC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 704 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 706 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 708 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 709 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 711 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), 2)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), 2)) WITH TOTALS ORDER BY k 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 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize('01473_trace_log_table_event_start_time_microseconds_test', 56), 2)) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 712 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(materialize(toUInt256(10000000))) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(materialize(toUInt256(10000000))) GROUP BY pow(materialize(3), materialize(2)) WITH TOTALS ORDER BY k ASC': 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('10000000', 'UInt256')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 713 out of 1000 EXPLAIN actions = true, indexes = true SELECT 3, round(avg(log(pow(3, materialize(2)), 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), toUInt256(2))) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN actions = true, indexes = true SELECT 3, round(avg(log(pow(3, materialize(2)), 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), toUInt256(2))) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 SELECT 3, round(avg(log(clear_column__fuzz_30, 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(clear_column__fuzz_30, 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_30' in scope SELECT 3, round(avg(log(clear_column__fuzz_30, 2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 715 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 717 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 718 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 2)))) WITH TOTALS ORDER BY k 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 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(toFixedString(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 720 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(toUInt128(1))))), toDateTime(time.2)) GROUP BY pow(3, materialize(toNullable(2))) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(toUInt128(1))))), toDateTime(time.2)) GROUP BY pow(3, materialize(toNullable(2))) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toNullable(toUInt128(1))))), toDateTime(time.2)) GROUP BY pow(3, materialize(toNullable(2))) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 721 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(2)))) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), materialize(materialize(toNullable(2)))) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 723 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(materialize(toNullable(2)))) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(toNullable(2))) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3))) GROUP BY pow(3, materialize(toNullable(2))) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3))) GROUP BY pow(3, materialize(toNullable(2))) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toUInt256(if(dateDiff('second', toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toNullable(materialize(3))) GROUP BY pow(3, materialize(toNullable(2))) WITH CUBE WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 726 out of 1000 SELECT pow(materialize(power(3, toNullable(3), materialize(2)), 3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toNullable(3), toNullable(2)) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT pow(materialize(power(3, toNullable(3), materialize(2)), 3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toNullable(3), toNullable(2)) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT pow(materialize(power(3, toNullable(3), materialize(2)), 3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toNullable(3), toNullable(2)) WITH CUBE WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 727 out of 1000 SELECT 3, pow(materialize(3), toNullable(2)), round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) GROUP BY pow(3, materialize(toNullable(2))) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, pow(materialize(3), toNullable(2)), round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) GROUP BY pow(3, materialize(toNullable(2))) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 728 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 731 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toUInt128(3)), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toUInt128(3)), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toUInt128(3)), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 733 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 734 out of 1000 EXPLAIN PIPELINE SELECT 3, round(POW(toLowCardinality(3), toLowCardinality(dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt128(2))), avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT 3, round(POW(toLowCardinality(3), toLowCardinality(dateDiff(toFixedString('second', 6), toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, toUInt128(2))), avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 735 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 736 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 737 out of 1000 SELECT 3, round(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 738 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toString(toString(57, POWER(3, 2), time), POWER(POW(2)), time) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 739 out of 1000 SELECT 3, round(POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, round(POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 740 out of 1000 SELECT 3, round(0, avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toNullable(3)), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(0, avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toNullable(3)), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': 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 3, round(0, avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toNullable(3)), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 741 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((pow(toLowCardinality(3), materialize(2)))) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((pow(toLowCardinality(3), materialize(2)))) WITH CUBE WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 742 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 743 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 744 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 747 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, materialize(2)) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 748 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 750 out of 1000 EXPLAIN PIPELINE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 754 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 756 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 758 out of 1000 SELECT round(avg(log(2) * number), toUInt128(6)), round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC Error on processing query 'SELECT round(avg(log(2) * number), toUInt128(6)), round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC': 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: UInt128: In scope SELECT round(avg(log(2) * number), toUInt128(6)), round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 759 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 761 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT round(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)), avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT round(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)), avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 764 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT round(toUInt256(toUInt128(3)), avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(toUInt256(toUInt128(3)), avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC NULLS LAST': 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(toUInt256(toUInt128(3)), avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 767 out of 1000 SELECT round(avg(toString(57, POWER(3, 2), time), log(toNullable(2)) * number)) AS k FROM numbers(10000000) PREWHERE materialize(toNullable(toUInt256(6))) WHERE number % 5 GROUP BY pow(3, 2) WITH ROLLUP WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(toString(57, POWER(3, 2), time), log(toNullable(2)) * number)) AS k FROM numbers(10000000) PREWHERE materialize(toNullable(toUInt256(6))) WHERE number % 5 GROUP BY pow(3, 2) WITH ROLLUP WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(toString(57, POWER(3, 2), time), log(toNullable(2)) * number)) AS k FROM numbers(10000000) PREWHERE materialize(toNullable(toUInt256(6))) WHERE number % 5 GROUP BY pow(3, 2) WITH ROLLUP WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 768 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(materialize(toLowCardinality(3))), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 772 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 775 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC NULLS LAST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 776 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY materialize(toLowCardinality(2)) ASC, k DESC NULLS LAST Got boring AST Fuzzing step 777 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 780 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE toFixedString('ok', 2) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE toFixedString('ok', 2) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(2). In query SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE toFixedString('ok', 2) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 781 out of 1000 SELECT toLowCardinality(toLowCardinality(1)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 SELECT 57, toLowCardinality(toLowCardinality(1)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 57, toLowCardinality(toLowCardinality(1)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 783 out of 1000 SELECT toLowCardinality(1), round(avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT toLowCardinality(1), round(avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE modulo(number) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toLowCardinality(1), round(avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE modulo(number) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(1), round(avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE modulo(number) GROUP BY pow(3, 2) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 785 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 787 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 788 out of 1000 SELECT toLowCardinality(1), round(avg(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(1), round(avg(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 789 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 790 out of 1000 SELECT toLowCardinality(1), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(10000000)) WHERE number % 5 GROUP BY pow(3, toUInt128(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(1), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(10000000)) WHERE number % 5 GROUP BY pow(3, toUInt128(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 791 out of 1000 SELECT toLowCardinality(1), round(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(1), round(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'x' to function 'round'. Expected: A number to round, got: String: In scope SELECT toLowCardinality(1), round(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 792 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 794 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(toNullable(3)), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 795 out of 1000 SELECT toLowCardinality(1), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toNullable(3), 2) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(1), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toNullable(3), 2) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(1), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toNullable(3), 2) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 796 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 798 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 799 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 800 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 801 out of 1000 SELECT toLowCardinality(toLowCardinality(toUInt128(toNullable(6))), 1), round(avg(log('7', toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(toLowCardinality(toUInt128(toNullable(6))), 1), round(avg(log('7', toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k 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 SELECT toLowCardinality(toLowCardinality(toUInt128(toNullable(6))), 1), round(avg(log('7', toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(3, 2) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 802 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 803 out of 1000 SELECT toLowCardinality(1), round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 804 out of 1000 SELECT 1, round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT 1, round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 806 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 807 out of 1000 SELECT 1, round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT 1, round(avg(tupleElement(time, toLowCardinality(1)), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE modulo(toLowCardinality(1), number, 5) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 1, round(avg(tupleElement(time, toLowCardinality(1)), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE modulo(toLowCardinality(1), number, 5) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 1, round(avg(tupleElement(time, toLowCardinality(1)), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE modulo(toLowCardinality(1), number, 5) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 809 out of 1000 SELECT 1, round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE number % 5 GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 810 out of 1000 SELECT 1, round(avg(log(toUInt256(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 EXPLAIN SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 EXPLAIN SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 815 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 EXPLAIN SYNTAX SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 EXPLAIN SYNTAX SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 818 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 819 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 821 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 823 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 824 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 825 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 826 out of 1000 EXPLAIN AST SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN AST SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 828 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 829 out of 1000 EXPLAIN SYNTAX SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 832 out of 1000 EXPLAIN AST SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 835 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('1'): 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 836 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 837 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 838 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('1'): 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 839 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 840 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 841 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 842 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 843 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('1'): 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 844 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 847 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 848 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 849 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 850 out of 1000 EXPLAIN ESTIMATE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('1'): 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 853 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 854 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 855 out of 1000 EXPLAIN SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 EXPLAIN QUERY TREE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 859 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('1'): 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 860 out of 1000 EXPLAIN SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 EXPLAIN SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 862 out of 1000 SELECT 1, round(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(materialize(2)) * number)) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 1, round(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(materialize(2)) * number)) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT 1, round(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(materialize(2)) * number)) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 863 out of 1000 EXPLAIN SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 864 out of 1000 EXPLAIN PIPELINE SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 867 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 869 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 871 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 873 out of 1000 SELECT 1, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(toLowCardinality(3)), 2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 877 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 878 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(POW(materialize(3), 2), 3), 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(POW(materialize(3), 2), 3), 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(POW(materialize(3), 2), 3), 2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 879 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 880 out of 1000 SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 881 out of 1000 SELECT round(avg(log(round(log(toUInt128(2))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH ROLLUP WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(log(round(log(toUInt128(2))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH ROLLUP WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 157 ('CUBE'): CUBE ORDER BY k DESC. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE power(3, materialize(materialize(toLowCardinality(toString(POW(POW(toLowCardinality(3), 2), 2)), 2)))) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE power(3, materialize(materialize(toLowCardinality(toString(POW(POW(toLowCardinality(3), 2), 2)), 2)))) GROUP BY pow(3, 2) WITH CUBE ORDER BY k 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 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE power(3, materialize(materialize(toLowCardinality(toString(POW(POW(toLowCardinality(3), 2), 2)), 2)))) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 883 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 885 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 886 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), 2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 890 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 891 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 892 out of 1000 SELECT round(avg(round(max(log(materialize(toLowCardinality(2))) * number) RESPECT NULLS), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(round(max(log(materialize(toLowCardinality(2))) * number) RESPECT NULLS), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 893 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, power(3, toLowCardinality(toNullable(2))), toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, power(3, toLowCardinality(toNullable(2))), toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, power(3, toLowCardinality(toNullable(2))), toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 894 out of 1000 SELECT round(avg(multiply(log(2), dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(multiply(log(2), dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(multiply(log(2), dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 895 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 896 out of 1000 SELECT round(number, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(number, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC': 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(number, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 897 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toUInt128(3), toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toUInt128(3), toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toUInt128(3), toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 898 out of 1000 SELECT round(number % 5, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toNullable(toFixedString('ok', toUInt128(2), 2), '01473_metric_log_table_event_start_time_microseconds_test')) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(number % 5, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toNullable(toFixedString('ok', toUInt128(2), 2), '01473_metric_log_table_event_start_time_microseconds_test')) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST': 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(number % 5, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toNullable(toFixedString('ok', toUInt128(2), 2), '01473_metric_log_table_event_start_time_microseconds_test')) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 899 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k 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 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 900 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toLowCardinality(toUInt128(3)) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toLowCardinality(toUInt128(3)) GROUP BY pow(3, toNullable(2)) WITH CUBE ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 901 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT materialize(materialize(toNullable(2))), round(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT materialize(materialize(toNullable(2))), round(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(tupleElement(time, 2))) = 0, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT materialize(materialize(toNullable(2))), round(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(time.2)) = 0, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 904 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 906 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 908 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 909 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE (number % 5) * (number % 5) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE (number % 5) * (number % 5) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt16 of column multiply(modulo(__table1.number, 5_UInt8), modulo(__table1.number, 5_UInt8)) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 910 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 911 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 912 out of 1000 SELECT round(avg(materialize(63), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), toNullable(2)) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(materialize(63), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(toLowCardinality(3), toNullable(2)) WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 913 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 914 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 915 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 916 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toString(2) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toString(2) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toString(2) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 917 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 918 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 919 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 920 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 921 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 922 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 923 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 925 out of 1000 SELECT round(avg(multiply(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toNullable(1))))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(multiply(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toNullable(1))))), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(multiply(if(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toNullable(1))))), toDateTime(time.2)) = 0, 'ok', toString(time)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 926 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 927 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), 2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), 2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) GROUP BY pow(materialize(3), 2) WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) GROUP BY pow(materialize(3), 2) WITH CUBE ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 930 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(materialize(3), 2) WITH CUBE ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 931 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 933 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 934 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 935 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 936 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 937 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 939 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 940 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 941 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 942 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 943 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 944 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 945 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 946 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 949 out of 1000 EXPLAIN SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 EXPLAIN AST SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 953 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 955 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 956 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 958 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 959 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 960 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 961 out of 1000 SELECT round(avg(power(toLowCardinality(toNullable(3)), 2), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(toNullable(3), 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(power(toLowCardinality(toNullable(3)), 2), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(toNullable(3), 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 962 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT round(materialize(toNullable(63)), avg(multiply(pow(materialize(toNullable(3)), materialize(toNullable(2))), log(toLowCardinality(2)), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(materialize(toNullable(63)), avg(multiply(pow(materialize(toNullable(3)), materialize(toNullable(2))), log(toLowCardinality(2)), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) WITH TOTALS ORDER BY k 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 SELECT round(materialize(toNullable(63)), avg(multiply(pow(materialize(toNullable(3)), materialize(toNullable(2))), log(toLowCardinality(2)), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 965 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 967 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT log(materialize(toNullable(2))), round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 SELECT log(materialize(toNullable(2))), round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 970 out of 1000 SELECT log(materialize(toNullable(2))), round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 971 out of 1000 SELECT log(materialize(toNullable(2))), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 SELECT log(materialize(toNullable(2))), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 973 out of 1000 SELECT log(materialize(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT log(materialize(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 975 out of 1000 SELECT log(2), round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, toUInt128(2)) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT log(2), round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, toUInt128(2)) WITH CUBE ORDER BY k 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 SELECT log(2), round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, toUInt128(2)) WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 976 out of 1000 SELECT log(materialize(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT log(materialize(2)), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT log(materialize(2)), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 166 ('CUBE'): CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 978 out of 1000 SELECT log(materialize(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT log(materialize(2)), round(avg(multiply(log(toLowCardinality(toNullable(toUInt128(2)))), POWER(POW(3, 2), 2, materialize(materialize(3))), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY numbers(6, 10000000) ASC, k DESC NULLS FIRST Error on processing query 'SELECT log(materialize(2)), round(avg(multiply(log(toLowCardinality(toNullable(toUInt128(2)))), POWER(POW(3, 2), 2, materialize(materialize(3))), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY numbers(6, 10000000) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT log(materialize(2)), round(avg(multiply(log(toLowCardinality(toNullable(toUInt128(2)))), POWER(POW(3, 2), 2, materialize(materialize(3))), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY numbers(6, 10000000) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 980 out of 1000 SELECT log(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 981 out of 1000 SELECT log(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 982 out of 1000 SELECT log(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 983 out of 1000 SELECT log(2), toNullable(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT log(2), toNullable(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 985 out of 1000 SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY GROUPING SETS ((pow(3, 2))) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY GROUPING SETS ((pow(3, 2))) WITH CUBE ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 988 out of 1000 SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 989 out of 1000 SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), multiply(number)), 6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), multiply(number)), 6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), multiply(number)), 6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 990 out of 1000 SELECT log(2), toNullable(toLowCardinality(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 991 out of 1000 SELECT log(2), toNullable(toLowCardinality(toNullable(2))), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT log(2), toLowCardinality(toNullable(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT log(2), toLowCardinality(toNullable(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT log(2), toLowCardinality(toNullable(2)), round(avg(log(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2) * number)) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT log(2), toLowCardinality(toNullable(2)), round(avg(log(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2) * number)) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k 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 log(2), toLowCardinality(toNullable(2)), round(avg(log(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 2) * number)) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 995 out of 1000 SELECT log(2), toLowCardinality(toNullable(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toNullable(6)) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 SELECT log(2), toLowCardinality(toNullable(2)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toNullable(6)) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 997 out of 1000 SELECT log(2), toLowCardinality(toNullable(2)), materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_44 WHERE toNullable(toNullable(6)) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT log(2), toLowCardinality(toNullable(2)), materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_44 WHERE toNullable(toNullable(6)) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_44' in scope SELECT log(2), toLowCardinality(toNullable(2)), materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_44 WHERE toNullable(toNullable(6)) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 998 out of 1000 SELECT log(2), toLowCardinality(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(toNullable(6)) GROUP BY pow(3, 2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 999 out of 1000 SELECT log(toNullable(2)), toLowCardinality(2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE toNullable(6) GROUP BY pow(materialize(toLowCardinality(3)), 2) WITH CUBE ORDER BY k ASC NULLS LAST 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(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toLowCardinality(toUInt256(3)), number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt256(3), number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(multiply(log(2), toFixedString('ok', toLowCardinality(2)), number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt256(3), number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT round(avg(multiply(log(2), toFixedString('ok', toLowCardinality(2)), number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt256(3), number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(log(2), toFixedString('ok', toLowCardinality(2)), number)), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt256(3), number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 5 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt256(3), number % 2 ORDER BY k ASC Got boring AST Fuzzing step 6 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt256(materialize(3)), number % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt256(materialize(3)), number % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 8 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(3), number % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(3), number % 2 ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 10 out of 1000 SELECT round(avg(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(3), number % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 11 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(3), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 15 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt128(3), number % 2 ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) ASC, avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt128(3), number % 2 ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) ASC, avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % toUInt128(3), number % 2 ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0) ASC, avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 16 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 SELECT round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % materialize(toLowCardinality(2)) ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT round(avg(log(toNullable(materialize(toUInt128(2)))) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % toLowCardinality(2) ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 SELECT round(avg(65535, log(toNullable(materialize(toUInt128(2)))) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(materialize(3))), number % toLowCardinality(2) ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k ASC Error on processing query 'SELECT round(avg(65535, log(toNullable(materialize(toUInt128(2)))) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(materialize(3))), number % toLowCardinality(2) ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k ASC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 22 out of 1000 SELECT round(avg(log(toNullable(materialize(toUInt128(2)))) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT round(avg(log(toNullable(materialize(toUInt128(2)))) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 24 out of 1000 SELECT round(avg(log(toNullable(materialize(toUInt128(2)))) * number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % materialize(toUInt128(3)), number % 2 ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 SELECT round(avg(log(materialize(toUInt128(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 SELECT round(avg(log(materialize(toUInt128(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 27 out of 1000 SELECT round(avg(log(materialize(toUInt128(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Got boring AST Fuzzing step 30 out of 1000 SELECT round(avg(multiply(log(toUInt128(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(toUInt128(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k 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 SELECT round(avg(multiply(log(toUInt128(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 31 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Got boring AST Fuzzing step 32 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 34 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 36 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 40 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Got boring AST Fuzzing step 48 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(max(log(materialize(2)) * number)) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(max(log(materialize(2)) * number)) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS FIRST, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max(log(materialize(2)) * number) is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 49 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, k ASC Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, k ASC': 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 50 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Got boring AST Fuzzing step 51 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 54 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 55 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 57 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 59 out of 1000 EXPLAIN ESTIMATE SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT round(POWER(materialize(toLowCardinality(2))), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Error on processing query 'SELECT round(POWER(materialize(toLowCardinality(2))), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(POWER(materialize(toLowCardinality(2))), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 62 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 63 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 69 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 70 out of 1000 EXPLAIN QUERY TREE SELECT round(avg(multiply(log(2), toString(2, 57, POWER(POW(3, toUInt256(2))), time), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE SELECT round(avg(multiply(log(2), toString(2, 57, POWER(POW(3, toUInt256(2))), time), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT round(avg(multiply(log(2), toString(2, 57, POWER(POW(3, toUInt256(2))), time), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 71 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC NULLS LAST, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 74 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 76 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 SELECT round(avg(multiply(log(2), toLowCardinality(toNullable(0)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST Error on processing query 'SELECT round(avg(multiply(log(2), toLowCardinality(toNullable(0)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k 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 SELECT round(avg(multiply(log(2), toLowCardinality(toNullable(0)), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 78 out of 1000 SELECT round(avg(multiply(log(2), max(log(2) * number), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST Error on processing query 'SELECT round(avg(multiply(log(2), max(log(2) * number), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k 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 SELECT round(avg(multiply(log(2), max(log(2) * number), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS ASC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 79 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(toUInt128(2)) * number) IGNORE NULLS DESC, log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC Got boring AST Fuzzing step 83 out of 1000 SELECT round(257, avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC Error on processing query 'SELECT round(257, avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC': 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(257, avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 84 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC Got boring AST Fuzzing step 86 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 88 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(toLowCardinality('01473_query_thread_log_table_event_start_time_microseconds_test')), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, 2)), time)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 89 out of 1000 SELECT dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(2)))))) = toLowCardinality(0), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST Error on processing query 'SELECT dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(2)))))) = toLowCardinality(0), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toLowCardinality(2)))))) = toLowCardinality(0), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 90 out of 1000 SELECT round(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k ASC Error on processing query 'SELECT round(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k ASC': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'x' to function 'round'. Expected: A number to round, got: String: In scope SELECT round(toNullable('01473_metric_log_table_event_start_time_microseconds_test'), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 91 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Got boring AST Fuzzing step 92 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Got boring AST Fuzzing step 93 out of 1000 SELECT round(avg(multiply(log(2), avg(multiply(log(toNullable(toNullable(2))), toLowCardinality(57), number)) IGNORE NULLS, number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Error on processing query 'SELECT round(avg(multiply(log(2), avg(multiply(log(toNullable(toNullable(2))), toLowCardinality(57), number)) IGNORE NULLS, number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(log(2), avg(multiply(log(toNullable(toNullable(2))), toLowCardinality(57), number)) IGNORE NULLS, number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 94 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Got boring AST Fuzzing step 95 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(max(log(toLowCardinality(2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(max(log(toLowCardinality(2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k ASC': Received from localhost:9000. DB::Exception: Aggregate function max(log(toLowCardinality(2)) * number) IGNORE NULLS is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 96 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 98 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Got boring AST Fuzzing step 99 out of 1000 EXPLAIN AST optimize = true SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Error on processing query 'EXPLAIN AST optimize = true SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 100 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Got boring AST Fuzzing step 101 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Got boring AST Fuzzing step 102 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT round(avg(multiply(256, log(toLowCardinality(materialize(2))), number))) AS k FROM numbers(10000000) WHERE toLowCardinality(toNullable(56)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Error on processing query 'SELECT round(avg(multiply(256, log(toLowCardinality(materialize(2))), number))) AS k FROM numbers(10000000) WHERE toLowCardinality(toNullable(56)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT round(avg(multiply(256, log(toLowCardinality(materialize(2))), number))) AS k FROM numbers(10000000) WHERE toLowCardinality(toNullable(56)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 104 out of 1000 EXPLAIN PIPELINE header = true SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC Error on processing query 'EXPLAIN PIPELINE header = true SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 105 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) GROUP BY if(dateDiff(toLowCardinality('second', 6), toDateTime(time.1), toDateTime(tupleElement(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, time, 2))) = 0, 'ok', toString(toNullable(2))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) GROUP BY if(dateDiff(toLowCardinality('second', 6), toDateTime(time.1), toDateTime(tupleElement(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = 0, time, 2))) = 0, 'ok', toString(toNullable(2))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) GROUP BY if(dateDiff(toLowCardinality('second', 6), toDateTime(time.1), toDateTime(tupleElement(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, time, 2))) = 0, 'ok', toString(toNullable(2))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 106 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC Error on processing query 'SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 107 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) PREWHERE pow(toNullable(3), toNullable(materialize(2))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC Error on processing query 'SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) PREWHERE pow(toNullable(3), toNullable(materialize(2))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 108 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC Got boring AST Fuzzing step 110 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC Got boring AST Fuzzing step 111 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC Error on processing query 'SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 112 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 113 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 114 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 115 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(POW(toFixedString(3, POW(toFixedString(toUInt128(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), 3), 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, toLowCardinality(toNullable(2))), 10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC Error on processing query 'SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(POW(toFixedString(3, POW(toFixedString(toUInt128(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), 3), 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, toLowCardinality(toNullable(2))), 10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC': 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 round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(POW(toFixedString(3, POW(toFixedString(toUInt128(toLowCardinality(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), 3), 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, toLowCardinality(toNullable(2))), 10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 118 out of 1000 SELECT round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 SELECT round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 120 out of 1000 SELECT POWER(POW(3, 2), 2, materialize(3)), round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT POWER(POW(3, 2), 2, materialize(3)), round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(POW(3, 2), 2, materialize(3)), round(avg(log(toLowCardinality(materialize(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 121 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 123 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 126 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(materialize(toLowCardinality(10000000))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(materialize(toLowCardinality(10000000))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k 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(_CAST(10000000, 'LowCardinality(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 127 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_25 WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_25 WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_25' in scope SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_25 WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 128 out of 1000 SELECT round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 129 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY avg(log(materialize(toUInt256(toUInt128(2)))) * number) IGNORE NULLS WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY avg(log(materialize(toUInt256(toUInt128(2)))) * number) IGNORE NULLS WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(materialize(toUInt256(toUInt128(2)))) * number) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 130 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 132 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 134 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 135 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(multiply(number))) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(multiply(number))) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, k ASC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 136 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 137 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(materialize(2))) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(materialize(2))) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 2]. In scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(materialize(materialize(2))) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 139 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 142 out of 1000 EXPLAIN SYNTAX SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 143 out of 1000 EXPLAIN AST SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 145 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 146 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 147 out of 1000 EXPLAIN AST SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 148 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN PIPELINE compact = true SELECT round(avg(multiply(log(2), log(materialize(2)), number)) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT round(avg(multiply(log(2), log(materialize(2)), number)) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 150 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (toNullable(6)), (materialize(toNullable(2)))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((toNullable(6)), (materialize(toNullable(2)))) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 151 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 22. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 152 out of 1000 SELECT round(avg(log(POW(3, toNullable(toLowCardinality(2))), materialize(toUInt256(2))) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(POW(3, toNullable(toLowCardinality(2))), materialize(toUInt256(2))) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(POW(3, toNullable(toLowCardinality(2))), materialize(toUInt256(2))) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 153 out of 1000 SELECT round(avg(multiply(log(materialize(POWER(3, toLowCardinality(2)), 2)))) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 10000000) GROUP BY 6, toNullable(2) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(log(materialize(POWER(3, toLowCardinality(2)), 2)))) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 10000000) GROUP BY 6, toNullable(2) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, pow(materialize(3), 2), time), pow(pow(2)), time))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 154 out of 1000 SELECT round(avg(toString(toUInt128(57), time), log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT round(avg(toString(toUInt128(57), time), log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(toString(toUInt128(57), time), log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 155 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 156 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 2]. In scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 157 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 158 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(dateDiff('second', toDateTime(tupleElement(max(log(toLowCardinality(2)) * number), time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(dateDiff('second', toDateTime(tupleElement(max(log(toLowCardinality(2)) * number), time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(dateDiff('second', toDateTime(tupleElement(max(log(toLowCardinality(2)) * number), time, 1)), toDateTime(time.2)) = materialize(0), 2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 159 out of 1000 EXPLAIN PIPELINE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 160 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(toDateTime(tupleElement(time, toUInt128(1))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(toDateTime(tupleElement(time, toUInt128(1))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(toDateTime(tupleElement(time, toUInt128(1))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 162 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), materialize(toNullable(2)) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 2]. In scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 165 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)), 2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)), 2) ORDER BY k 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 round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(materialize(toFixedString(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 56)), 2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 166 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(number)) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 168 out of 1000 SELECT round(avg(log(materialize(2)) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT round(avg(log(materialize(2)) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(2) * number) is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 170 out of 1000 SELECT round(avg(log(materialize(2)) * number)) FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number)) FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 2 is out of bounds. Expected in range [1, 1]. In scope SELECT round(avg(log(materialize(2)) * number)) FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 171 out of 1000 SELECT round(avg(log(materialize(2)) * number)), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number)), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 172 out of 1000 SELECT round(avg(log(2) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE POWER(POW(3, toNullable(2))) GROUP BY toNullable(6), toNullable(2) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE POWER(POW(3, toNullable(2))) GROUP BY toNullable(6), toNullable(2) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(2) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE POWER(POW(3, toNullable(2))) GROUP BY toNullable(6), toNullable(2) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 173 out of 1000 SELECT round(avg(log(materialize(materialize(2))) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(materialize(2))) * number)), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(2) * number) is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 174 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 2]. In scope SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 177 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 178 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 179 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 180 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 182 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 183 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 184 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE -2147483648 GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE -2147483648 GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Int32 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 186 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 187 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT round(avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS), round(POW(toFixedString(57), 3, 2), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS), round(POW(toFixedString(57), 3, 2), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS), round(POW(toFixedString(57), 3, 2), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 189 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(materialize(6)), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(toLowCardinality(materialize(2)), materialize(6)), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(toLowCardinality(materialize(2)), materialize(6)), toNullable(2) WITH CUBE ORDER BY k 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 round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toNullable(toLowCardinality(materialize(2)), materialize(6)), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 191 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(toLowCardinality(materialize(3)), toNullable(toLowCardinality(2))), 2), POW(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 3, toNullable(2)), 2))), 10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(toLowCardinality(materialize(3)), toNullable(toLowCardinality(2))), 2), POW(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 3, toNullable(2)), 2))), 10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(pow(pow(pow(3, toNullable(2)), pow(toLowCardinality(materialize(3)), toNullable(toLowCardinality(2))), 2), pow(materialize('01473_query_thread_log_table_event_start_time_microseconds_test'), 3, toNullable(2)), 2)))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 193 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 194 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(2) * number) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 195 out of 1000 SELECT round(avg(multiply(number)) IGNORE NULLS), round(avg(multiply(pow(materialize(3), toNullable(2)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(multiply(number)) IGNORE NULLS), round(avg(multiply(pow(materialize(3), toNullable(2)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k 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 SELECT round(avg(multiply(number)) IGNORE NULLS), round(avg(multiply(pow(materialize(3), toNullable(2)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 196 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 197 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 2]. In scope SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 199 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 200 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 201 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(POWER(materialize(3), toLowCardinality(2)), 10000000) GROUP BY materialize(materialize(6)), toNullable(2) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(POWER(materialize(3), toLowCardinality(2)), 10000000) GROUP BY materialize(materialize(6)), toNullable(2) WITH CUBE ORDER BY k ASC': 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): pow(materialize(3), _CAST(2, 'LowCardinality(UInt8)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 202 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 203 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 204 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 205 out of 1000 SELECT round(avg(2, log(2) * number) IGNORE NULLS), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(2, log(2) * number) IGNORE NULLS), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 206 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 207 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 209 out of 1000 SELECT round(toNullable(toLowCardinality(6))), round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(toNullable(toLowCardinality(6))), round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function avg(log(2) * number) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 210 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(materialize(toLowCardinality(toNullable(6))), 6), toNullable(2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(materialize(toLowCardinality(toNullable(6))), 6), toNullable(2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(materialize(toLowCardinality(toNullable(6))), 6), toNullable(2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 211 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 ORDER BY k DESC Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function avg(log(2) * number) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 212 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(round(avg(multiply(toFixedString('ok', toNullable(toUInt128(2))), log(toLowCardinality(2)), number))), multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(round(avg(multiply(toFixedString('ok', toNullable(toUInt128(2))), log(toLowCardinality(2)), number))), multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k 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 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(round(avg(multiply(toFixedString('ok', toNullable(toUInt128(2))), log(toLowCardinality(2)), number))), multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 215 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 217 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 218 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Got boring AST Fuzzing step 219 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(1, 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(1, 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT round(avg(log(toLowCardinality(2)) * number)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(1, 2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 220 out of 1000 SELECT round(avg(multiply(log(toLowCardinality(2))))), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(multiply(log(toLowCardinality(2))))), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(multiply(log(toLowCardinality(2))))), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 221 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(toUInt128(2)))) * number)), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(toUInt128(2)))) * number)), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number)), POWER(POW(toNullable(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number)), POWER(POW(toNullable(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(10000000)) GROUP BY materialize(6), 2 WITH CUBE ORDER BY toNullable(0) ASC, k ASC NULLS LAST Error on processing query 'SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number)), POWER(POW(toNullable(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toUInt128(10000000)) GROUP BY materialize(6), 2 WITH CUBE ORDER BY toNullable(0) ASC, k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 225 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number)), POWER(POW(toNullable(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 226 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number)), POWER(POW(toNullable(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number)), POWER(POW(toNullable(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 3]. In scope SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number)), POWER(POW(toNullable(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 227 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toLowCardinality(materialize(toNullable(2)))), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(toUInt128(6)), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toLowCardinality(materialize(toNullable(2)))), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(toUInt128(6)), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 229 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(6, 2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(6, 2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 3]. In scope SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(6, 2) WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 230 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 231 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 232 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 3]. In scope SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 233 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, toLowCardinality(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC Error on processing query 'SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 3]. In scope SELECT round(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 236 out of 1000 SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 239 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(materialize(3), 2), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(materialize(3), 2), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(materialize(3), 2), 2), round(avg(round(avg(log(materialize(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(materialize(3), 2), 2), round(avg(round(avg(log(materialize(materialize(toLowCardinality(2)))) * number) IGNORE NULLS), log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 242 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(materialize(3), 2), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 243 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 EXPLAIN PIPELINE compact = true SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 245 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, POWER(2, materialize(toNullable(3))), toNullable(2)), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, POWER(2, materialize(toNullable(3))), toNullable(2)), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, POWER(2, materialize(toNullable(3))), toNullable(2)), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 246 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, 2), 2), round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 247 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 249 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, materialize(toLowCardinality(2))), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, materialize(toLowCardinality(2))), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(materialize(10000000)) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 251 out of 1000 SELECT round(avg(toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC Error on processing query 'SELECT round(avg(toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')), log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 252 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2)))), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toLowCardinality(2) WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2)))), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toLowCardinality(2) WITH CUBE ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2)))), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toLowCardinality(2) WITH CUBE ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 253 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_16 GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_16 GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_16' in scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_16 GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 254 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 255 out of 1000 SELECT round(avg(log(2) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(materialize(toUInt256(2))))), 2), pow(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(2) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(materialize(toUInt256(2))))), 2), pow(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT round(avg(log(2) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(materialize(toUInt256(2))))), 2), pow(3, 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 256 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), POWER(POW(3, toNullable(2)), 2), round(avg(multiply(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))) = materialize(0), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), POWER(POW(3, toNullable(2)), 2), round(avg(multiply(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(tupleElement(time, 2))) = materialize(0), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), POWER(POW(3, toNullable(2)), 2), round(avg(multiply(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = materialize(0), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 257 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(toLowCardinality(6)), 2 WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(toLowCardinality(6)), 2 WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(avg(log(materialize(2)) * number) IGNORE NULLS), power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(toLowCardinality(6)), 2 WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 259 out of 1000 SELECT power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k DESC Error on processing query 'SELECT power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 3]. In scope SELECT power(3, 2), POWER(POW(3, materialize(toNullable(2))), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY 6, 2 WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 261 out of 1000 SELECT power(3, 2), POWER(POW(3, toNullable(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 SELECT power(3, 2), POWER(POW(3, toNullable(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 SELECT power(3, 2), POWER(POW(3, toNullable(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 SELECT power(3, 2), POWER(POW(3, toNullable(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 265 out of 1000 SELECT power(3, 2), POWER(POW(3, toNullable(2)), 2), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 266 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 269 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 270 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 271 out of 1000 SELECT power(3, toNullable(2)), POWER(POW(3, 2), toUInt128(2)), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT power(3, toNullable(2)), POWER(POW(3, 2), toUInt128(2)), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(3, toNullable(2)), POWER(POW(3, 2), toUInt128(2)), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 272 out of 1000 EXPLAIN QUERY TREE dump_passes = true, passes = true SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE dump_passes = true, passes = true SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 273 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 274 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 275 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 277 out of 1000 EXPLAIN PIPELINE SELECT power(2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(POW(materialize(toLowCardinality(power(toNullable(3), toNullable(2)), 3)), 2), 2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE pow(materialize(3), 2) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT power(2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(POW(materialize(toLowCardinality(power(toNullable(3), toNullable(2)), 3)), 2), 2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE pow(materialize(3), 2) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(POW(materialize(toLowCardinality(power(toNullable(3), toNullable(2)), 3)), 2), 2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE pow(materialize(3), 2) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 278 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(multiply(log(toUInt128(2)))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(multiply(log(toUInt128(2)))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k 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 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(multiply(log(toUInt128(2)))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 279 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(toFixedString(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(toLowCardinality(0)), 'ok', toLowCardinality(2), '01473_query_thread_log_table_event_start_time_microseconds_test', toString(time)), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(toFixedString(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(toLowCardinality(0)), 'ok', toLowCardinality(2), '01473_query_thread_log_table_event_start_time_microseconds_test', toString(time)), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(toFixedString(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(toLowCardinality(0)), 'ok', toLowCardinality(2), '01473_query_thread_log_table_event_start_time_microseconds_test', toString(time)), toNullable('01473_metric_log_table_event_start_time_microseconds_test')), 57), 2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 280 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(toUInt128(6), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE materialize(materialize(toNullable(3))) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(toUInt128(6), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE materialize(materialize(toNullable(3))) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 281 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 SELECT power(3, 2), POWER(POW(toUInt128(3), 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT power(3, 2), POWER(POW(toUInt128(3), 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(3, 2), POWER(POW(toUInt128(3), 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 283 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 284 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 285 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), toNullable(2)), 3, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3, 2), POWER(POW(3, 2), toNullable(2)), 3, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k 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 SELECT power(3, 2), POWER(POW(3, 2), toNullable(2)), 3, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), 2 WITH CUBE ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 286 out of 1000 SELECT power(3, 2), POWER(POW(3, 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), materialize(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 SELECT power(3, 2), POWER(POW(materialize(toLowCardinality(3)), 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT power(3, 2), POWER(POW(materialize(toLowCardinality(3)), 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 4]. In scope SELECT power(3, 2), POWER(POW(materialize(toLowCardinality(3)), 2), 2), materialize(3), round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) GROUP BY 6, materialize(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 288 out of 1000 SELECT power(3, 2), materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), materialize(toNullable(2)) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT power(3, 2), materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 SELECT power(3, toNullable(2)), 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT power(3, toNullable(2)), 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT power(3, toNullable(2)), 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 291 out of 1000 SELECT power(3, 2), materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 292 out of 1000 SELECT power(3, 2), materialize(3), round(POWER(2, 3), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT power(3, 2), materialize(3), round(POWER(2, 3), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST': 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 power(3, 2), materialize(3), round(POWER(2, 3), avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 293 out of 1000 EXPLAIN PIPELINE SELECT power(3, 2), materialize(toLowCardinality(toNullable(6)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT power(3, 2), materialize(toLowCardinality(toNullable(6)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k 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 SELECT power(3, 2), materialize(toLowCardinality(toNullable(6)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY 6, toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 294 out of 1000 SELECT power(3, 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 SELECT power(3, 2), 3, round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT power(3, 2), 3, round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), 3, round(avg(multiply(number))) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 296 out of 1000 SELECT power(3, 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 297 out of 1000 SELECT power(3, 2), 3, round(avg(log(toNullable(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT power(3, 2), 3, round(avg(log(toNullable(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY materialize(6), toNullable(2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 298 out of 1000 SELECT power(3, 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 299 out of 1000 SELECT power(3, 2), 3, round(avg(round(avg(log(materialize(POW(toLowCardinality(3), 2), toUInt128(2))) * number) IGNORE NULLS), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT power(3, 2), 3, round(avg(round(avg(log(materialize(POW(toLowCardinality(3), 2), toUInt128(2))) * number) IGNORE NULLS), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT power(3, 2), 3, round(avg(round(avg(log(materialize(POW(toLowCardinality(3), 2), toUInt128(2))) * number) IGNORE NULLS), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 300 out of 1000 SELECT power(3, 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 301 out of 1000 SELECT power(toUInt128(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT power(toUInt128(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(toUInt128(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 302 out of 1000 SELECT power(3, 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT power(3, 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 304 out of 1000 SELECT power(3, 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 305 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 307 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 308 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 309 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 310 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 311 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 312 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 313 out of 1000 SELECT power(POWER(3, toLowCardinality(2)), toNullable(toUInt256(toNullable(2)), 3), 2), 3, round(avg(round(toNullable(toLowCardinality(6))), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(POWER(3, toLowCardinality(2)), toNullable(toUInt256(toNullable(2)), 3), 2), 3, round(avg(round(toNullable(toLowCardinality(6))), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 power(POWER(3, toLowCardinality(2)), toNullable(toUInt256(toNullable(2)), 3), 2), 3, round(avg(round(toNullable(toLowCardinality(6))), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 314 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 315 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 EXPLAIN PIPELINE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 EXPLAIN PIPELINE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 318 out of 1000 SELECT power(toNullable(materialize(3)), toUInt256(2)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT power(toNullable(materialize(3)), toUInt256(2)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(toNullable(materialize(3)), toUInt256(2)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 319 out of 1000 EXPLAIN SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 322 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 323 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 324 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 325 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 326 out of 1000 EXPLAIN SYNTAX SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN ESTIMATE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 330 out of 1000 EXPLAIN ESTIMATE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 331 out of 1000 EXPLAIN SYNTAX SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT power(3, 2), 3, round(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(POWER(2, 3), time), 0), 'ok', toString(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), 3, round(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))), toString(POWER(2, 3), time), 0), 'ok', toString(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT power(3, 2), 3, round(if(equals(dateDiff('second', toDateTime(time.1), toDateTime(time.2)), toString(POWER(2, 3), time), 0), 'ok', toString(2)), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 333 out of 1000 EXPLAIN SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 EXPLAIN SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 335 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 336 out of 1000 EXPLAIN SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 337 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 340 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 341 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 342 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 343 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 344 out of 1000 EXPLAIN QUERY TREE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 345 out of 1000 EXPLAIN SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('power'): power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 348 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 349 out of 1000 EXPLAIN PIPELINE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 EXPLAIN PIPELINE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 351 out of 1000 EXPLAIN PIPELINE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 352 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 EXPLAIN AST SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 354 out of 1000 EXPLAIN ESTIMATE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 355 out of 1000 EXPLAIN ESTIMATE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 356 out of 1000 EXPLAIN ESTIMATE SELECT power(toNullable(3), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 357 out of 1000 SELECT power(toNullable(materialize(toLowCardinality(3))), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 SELECT power(toNullable(toLowCardinality(toString(POW(toLowCardinality(POW(3, toNullable(2)), toLowCardinality(toNullable(2))))), 3)), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(toNullable(toLowCardinality(toString(POW(toLowCardinality(POW(3, toNullable(2)), toLowCardinality(toNullable(2))))), 3)), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 power(toNullable(toLowCardinality(toString(POW(toLowCardinality(POW(3, toNullable(2)), toLowCardinality(toNullable(2))))), 3)), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 360 out of 1000 SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(log(toUInt256(2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(log(toUInt256(2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(log(toUInt256(2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 362 out of 1000 SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(multiply(toFixedString(toLowCardinality(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(multiply(toFixedString(toLowCardinality(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT power(toNullable(toLowCardinality(3)), 2), 3, round(avg(multiply(toFixedString(toLowCardinality(toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 363 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 364 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS is found in PREWHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555e7d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 365 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 366 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 367 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 369 out of 1000 SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 370 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 371 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 372 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 373 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 374 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) PREWHERE toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) PREWHERE toNullable(toNullable('01473_trace_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 375 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 377 out of 1000 SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 378 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 379 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 380 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 EXPLAIN SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 385 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 386 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 387 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 388 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 389 out of 1000 SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE materialize(toUInt128(0)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE materialize(toUInt128(0)) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 390 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 391 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 392 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 395 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 396 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT 3, round(avg(round(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(round(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(avg(round(max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 398 out of 1000 SELECT 3, round(avg(log(power(materialize(materialize(3)), 2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(power(materialize(materialize(3)), 2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, round(avg(log(power(materialize(materialize(3)), 2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 399 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 400 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 401 out of 1000 SELECT 3, round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 402 out of 1000 SELECT 3, round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 SELECT 3, round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), materialize(toNullable(3)) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 SELECT 3, round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(log(log(toLowCardinality(toUInt128(2))) * number, materialize(toUInt256(materialize(2)))), 3, toLowCardinality(2)), materialize(toNullable(3)) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(log(log(toLowCardinality(toUInt128(2))) * number, materialize(toUInt256(materialize(2)))), 3, toLowCardinality(2)), materialize(toNullable(3)) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, round(avg(log(toUInt256(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(log(log(toLowCardinality(toUInt128(2))) * number, materialize(toUInt256(materialize(2)))), 3, toLowCardinality(2)), materialize(toNullable(3)) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 405 out of 1000 SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS LAST Got boring AST Fuzzing step 407 out of 1000 SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 409 out of 1000 SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), 3 WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC Error on processing query 'SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), 3 WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, round(avg(log(toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), 3 WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 411 out of 1000 SELECT 3, round(avg(log(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, round(avg(log(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), toUInt256(toNullable(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 412 out of 1000 SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(power(toLowCardinality(3), 3, 2), 10000000) GROUP BY POWER(pow(materialize(toNullable(3)), toNullable(2)), 3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(power(toLowCardinality(3), 3, 2), 10000000) GROUP BY POWER(pow(materialize(toNullable(3)), toNullable(2)), 3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(power(toLowCardinality(3), 3, 2), 10000000) GROUP BY POWER(pow(materialize(toNullable(3)), toNullable(2)), 3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 415 out of 1000 SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 416 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC 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 3, round(avg(log(2) * number)) AS k FROM numbers(toFixedString(toNullable('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 418 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE log(toUInt128(toLowCardinality(toUInt256(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE log(toUInt128(toLowCardinality(toUInt256(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 419 out of 1000 SELECT 3, round(avg(multiply(toUInt128(63), log(2), number))) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT 3, round(avg(multiply(toUInt128(63), log(2), number))) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY k 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 SELECT 3, round(avg(multiply(toUInt128(63), log(2), number))) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 420 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(toUInt128(2))), toNullable(3) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(toUInt128(2))), toNullable(3) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(toUInt128(2))), toNullable(3) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 421 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), 3 WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), 3 WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), 3 WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 422 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), 3 WITH TOTALS ORDER BY if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC, k ASC Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), 3 WITH TOTALS ORDER BY if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC, k ASC': Received from localhost:9000. DB::Exception: Positional argument number 3 is out of bounds. Expected in range [1, 2]. In scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), 3 WITH TOTALS ORDER BY if(dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) = 0, materialize('ok'), toString(time)) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(3) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 424 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(toUInt128(3)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 425 out of 1000 SELECT 3, round(avg(log(toString(power(POWER(POW(3, 2)), 3, toLowCardinality(2)), time), 2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(toUInt128(3)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(toString(power(POWER(POW(3, 2)), 3, toLowCardinality(2)), time), 2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(toUInt128(3)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, round(avg(log(toString(power(POWER(POW(3, 2)), 3, toLowCardinality(2)), time), 2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, toLowCardinality(2)), toNullable(toUInt128(3)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 426 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(toUInt128(3)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(toUInt128(3)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 428 out of 1000 SELECT 3 FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 3 FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT 3 FROM numbers(10000000) GROUP BY POWER(3, 2), toNullable(3) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 429 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 431 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 432 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(materialize(toLowCardinality(10000000))) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(materialize(toLowCardinality(10000000))) WITH TOTALS ORDER BY k 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(_CAST(10000000, 'LowCardinality(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 433 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 434 out of 1000 SELECT 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 435 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 436 out of 1000 SELECT 3, round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT 3, round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 438 out of 1000 SELECT 3, round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 439 out of 1000 SELECT toLowCardinality(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT toLowCardinality(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 441 out of 1000 SELECT toLowCardinality(toLowCardinality(3)), round(avg(log(2) * number)) AS k FROM numbers(toUInt128(56), 10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toLowCardinality(toLowCardinality(3)), round(avg(log(2) * number)) AS k FROM numbers(toUInt128(56), 10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 442 out of 1000 SELECT toLowCardinality(3), round(avg(toLowCardinality(toLowCardinality(materialize(materialize(3)), 1)), log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY 1 WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toLowCardinality(3), round(avg(toLowCardinality(toLowCardinality(materialize(materialize(3)), 1)), log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY 1 WITH TOTALS ORDER BY k ASC 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 toLowCardinality(3), round(avg(toLowCardinality(toLowCardinality(materialize(materialize(3)), 1)), log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY 1 WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 443 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 SELECT 3, round(avg(clear_column__fuzz_37, multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(clear_column__fuzz_37, multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_37' in scope SELECT 3, round(avg(clear_column__fuzz_37, multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 445 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 446 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 447 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 449 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 450 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 452 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 454 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 455 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 457 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 458 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 459 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 460 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 461 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 463 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 464 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 465 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 466 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 467 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 468 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 470 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 471 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 472 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 473 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 EXPLAIN SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 476 out of 1000 EXPLAIN SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 477 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 478 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 479 out of 1000 EXPLAIN AST SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 480 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 482 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 483 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 484 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 487 out of 1000 SELECT avg(multiply(number)), 3, round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(multiply(number)), 3, round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)), 3, round(avg(log(materialize(toNullable(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 488 out of 1000 SELECT avg(toString(2, 57, POWER(POW(3, toNullable(avg(log(2) * number) IGNORE NULLS, toUInt256(2)))), time), log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(toString(2, 57, POWER(POW(3, toNullable(avg(log(2) * number) IGNORE NULLS, toUInt256(2)))), time), log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 avg(toString(2, 57, POWER(POW(3, toNullable(avg(log(2) * number) IGNORE NULLS, toUInt256(2)))), time), log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 489 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 490 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 491 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), 10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(POW(2), time)), 10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', toString(pow(2), time))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 492 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 494 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 495 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 497 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 498 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2147483647, 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2147483647, 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2147483647, 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 499 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 501 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 503 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 504 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 505 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 506 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) DESC, k DESC NULLS LAST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(toLowCardinality(2)) * number), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY dateDiff(toLowCardinality(toNullable('second')), toDateTime(tupleElement(time, toNullable(toUInt256(1)))), toDateTime(time.2)) DESC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 507 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 508 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 509 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS, 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY materialize(toNullable(56)) DESC, k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS, 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY materialize(toNullable(56)) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 510 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) RESPECT NULLS, 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) RESPECT NULLS, 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 511 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 512 out of 1000 SELECT avg(multiply(log(toLowCardinality(2)), dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), number)), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(multiply(log(toLowCardinality(2)), dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), number)), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(multiply(log(toLowCardinality(2)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), number)), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 513 out of 1000 SELECT avg(log(2) * number), 3, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), 3, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number), 3, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 514 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 515 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 516 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 517 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, 3, round(log(materialize(toNullable(materialize(toLowCardinality(2))))), avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS, 3, round(log(materialize(toNullable(materialize(toLowCardinality(2))))), avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': 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 avg(log(2) * number) IGNORE NULLS, 3, round(log(materialize(toNullable(materialize(toLowCardinality(2))))), avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 518 out of 1000 SELECT avg(log(toNullable(2)) * number), 3, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 SELECT avg(log(toNullable(2)) * number), 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 520 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 522 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 523 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 524 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 525 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 527 out of 1000 SELECT avg(log(2) * number), 3, toNullable(materialize(5), toUInt256(materialize(3))), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number), 3, toNullable(materialize(5), toUInt256(materialize(3))), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number), 3, toNullable(materialize(5), toUInt256(materialize(3))), round(avg(multiply(number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 528 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE if(dateDiff(toLowCardinality('second', 6), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE if(dateDiff(toLowCardinality('second', 6), toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(2))) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE if(dateDiff(toLowCardinality('second', 6), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(2))) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 530 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 531 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 532 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 533 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 535 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 536 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 538 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 539 out of 1000 SELECT avg(multiply(log(2))), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(multiply(log(2))), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(log(2))), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 540 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 541 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 542 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toUInt256(3), POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), log(materialize(2)) * number WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toUInt256(3), POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), log(materialize(2)) * number WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT avg(log(toLowCardinality(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY toUInt256(3), POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), log(materialize(2)) * number WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 543 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), materialize(toUInt128(3)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), materialize(toUInt128(3)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 545 out of 1000 SELECT avg(log(2) * number), materialize(toUInt128(3)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 547 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 548 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(toNullable(materialize(3)), 10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(toNullable(materialize(3)), 10000000) WITH TOTALS ORDER BY k ASC': 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(3)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 550 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 551 out of 1000 SELECT avg(multiply(number)), toUInt128(if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(multiply(number)), toUInt128(if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)), toUInt128(if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), 3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 552 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 553 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number), toUInt128(3), round(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: A value of illegal type was provided as 1st argument 'x' to function 'round'. Expected: A number to round, got: String: In scope SELECT avg(log(2) * number), toUInt128(3), round(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764881e 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 554 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 555 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k ASC': 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 556 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 557 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 558 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 SELECT avg(log(2) * number), toUInt128(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 560 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 EXPLAIN AST graph = true SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN AST graph = true SELECT avg(log(2) * number) IGNORE NULLS, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 562 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 563 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 564 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 565 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 567 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(pow(toNullable(3), 2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number), 3, round(avg(log(pow(toNullable(3), 2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number), 3, round(avg(log(pow(toNullable(3), 2), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 568 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 569 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 570 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 571 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number), 3, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 572 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 573 out of 1000 SELECT avg(multiply(log(2))), 3, round(avg(log(toNullable(toUInt256(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(multiply(log(2))), 3, round(avg(log(toNullable(toUInt256(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT avg(multiply(log(2))), 3, round(avg(log(toNullable(toUInt256(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 574 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 575 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 576 out of 1000 SELECT avg(multiply(number)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(multiply(number)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT avg(multiply(number)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 577 out of 1000 SELECT avg(log(toNullable(2)) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT avg(multiply(log(toNullable(2)), pow(toNullable(3), materialize(toNullable(2))), number)), 3, round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(multiply(log(toNullable(2)), pow(toNullable(3), materialize(toNullable(2))), number)), 3, round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(multiply(log(toNullable(2)), pow(toNullable(3), materialize(toNullable(2))), number)), 3, round(avg(log(toUInt128(2)) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 579 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 580 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 581 out of 1000 SELECT avg(log(2) * number), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 582 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 584 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 585 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 586 out of 1000 SELECT 3, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 SELECT materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT materialize(3), round(avg(multiply(power(toNullable(3), 2), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT materialize(3), round(avg(multiply(power(toNullable(3), 2), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT materialize(3), round(avg(multiply(power(toNullable(3), 2), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 592 out of 1000 SELECT materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT materialize(3), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 594 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE POWER(materialize(3), toLowCardinality(2)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT materialize(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE POWER(materialize(3), toLowCardinality(2)) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Float64 of column pow(materialize(3_UInt8), _CAST(2_LowCardinality(UInt8), 'LowCardinality(UInt8)'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 597 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT 3, round(avg(pow(toLowCardinality(toUInt128(3)), materialize(2)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT 3, round(avg(pow(toLowCardinality(toUInt128(3)), materialize(2)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT 3, round(avg(pow(toLowCardinality(toUInt128(3)), materialize(2)), log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 599 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 600 out of 1000 SELECT 3, round(avg(log(toLowCardinality(toLowCardinality(1)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 3, round(avg(log(toLowCardinality(toLowCardinality(1)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, round(avg(log(toLowCardinality(toLowCardinality(1)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 601 out of 1000 EXPLAIN `header, description` = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'EXPLAIN `header, description` = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 602 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toUInt256(63), 10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(toUInt256(63), 10000000) WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 603 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 604 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 606 out of 1000 SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 607 out of 1000 SELECT 3, round(avg(multiply(log(2), clear_column__fuzz_33, number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(multiply(log(2), clear_column__fuzz_33, number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_33' in scope SELECT 3, round(avg(multiply(log(2), clear_column__fuzz_33, number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 608 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 610 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 611 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 613 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 614 out of 1000 SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(toNullable(toUInt128(10000000))) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 3, round(avg(multiply(log(2)))) AS k FROM numbers(toNullable(toUInt128(10000000))) WITH TOTALS ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 615 out of 1000 SELECT 3 FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT 3 FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT 3 FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 616 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 618 out of 1000 SELECT 3, round(avg(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(avg(log(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 Fuzzing step 619 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 620 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 621 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 622 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 623 out of 1000 EXPLAIN ESTIMATE SELECT 3, round(avg(multiply(if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(toUInt128(57), time)), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT 3, round(avg(multiply(if(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(toUInt128(57), time)), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(avg(multiply(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(toUInt128(57), time)), log(2), number))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 624 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 625 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 626 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY modulo(number) * (number % 5) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY modulo(number) * (number % 5) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY modulo(number) * (number % 5) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 627 out of 1000 EXPLAIN PIPELINE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 EXPLAIN PIPELINE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 629 out of 1000 EXPLAIN PIPELINE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 630 out of 1000 EXPLAIN SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 EXPLAIN SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 632 out of 1000 EXPLAIN SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 633 out of 1000 EXPLAIN SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 634 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('3'): 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 635 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 637 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 638 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 640 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 642 out of 1000 EXPLAIN PIPELINE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 644 out of 1000 EXPLAIN SYNTAX SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 EXPLAIN SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 EXPLAIN SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 650 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 38 ('3'): 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 651 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 653 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 654 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 655 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 43 ('3'): 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 656 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 657 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 658 out of 1000 EXPLAIN PIPELINE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 EXPLAIN QUERY TREE SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 661 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 663 out of 1000 EXPLAIN AST SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 664 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 666 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 668 out of 1000 SELECT 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 SELECT 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 670 out of 1000 SELECT 3, round(avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), materialize(toLowCardinality(clear_column__fuzz_5, 2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT 3, round(avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), materialize(toLowCardinality(clear_column__fuzz_5, 2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, round(avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), materialize(toLowCardinality(clear_column__fuzz_5, 2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 671 out of 1000 SELECT 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 672 out of 1000 SELECT 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT 3, round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT 3, round(avg(log(toLowCardinality(2)) * number) RESPECT NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 674 out of 1000 SELECT 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 675 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) GROUP BY POW(toLowCardinality(3), 2), 6, materialize(2), log(materialize(toLowCardinality(toUInt256(2)))), pow(materialize(toUInt128(3)), toNullable(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) GROUP BY POW(toLowCardinality(3), 2), 6, materialize(2), log(materialize(toLowCardinality(toUInt256(2)))), pow(materialize(toUInt128(3)), toNullable(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Positional argument number 6 is out of bounds. Expected in range [1, 3]. In scope SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) GROUP BY POW(toLowCardinality(3), 2), 6, materialize(2), log(materialize(toLowCardinality(toUInt256(2)))), pow(materialize(toUInt128(3)), toNullable(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 679 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 680 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 681 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), materialize(3), round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 682 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), materialize(3), round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 683 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toNullable(3)) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toNullable(3)) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 685 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, toString(toUInt128(toUInt256(63), 57), POWER(toNullable(3), 2), time), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, toString(toUInt128(toUInt256(63), 57), POWER(toNullable(3), 2), time), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC': 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 toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, toString(toUInt128(toUInt256(63), 57), POWER(toNullable(3), 2), time), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 686 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 688 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 689 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) WHERE toLowCardinality(materialize(toNullable(3))) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(toNullable(10000000)) WHERE toLowCardinality(materialize(toNullable(3))) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(materialize(3)) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 691 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), materialize(toLowCardinality(3)), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), toLowCardinality(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT toNullable(POWER(toLowCardinality(toNullable(3)), 2), toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), toLowCardinality(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT toNullable(POWER(toLowCardinality(toNullable(3)), 2), toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), toLowCardinality(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) WITH TOTALS ORDER BY k ASC 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 toNullable(POWER(toLowCardinality(toNullable(3)), 2), toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), toLowCardinality(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 695 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(3), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, toLowCardinality(2)), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(3), round(log(toLowCardinality(materialize(2))), avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, toLowCardinality(2)), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(3), round(log(toLowCardinality(materialize(2))), avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, toLowCardinality(2)), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC': 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 '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(3), round(log(toLowCardinality(materialize(2))), avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, toLowCardinality(2)), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 697 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 EXPLAIN QUERY TREE run_passes = true SELECT toNullable(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE run_passes = true SELECT toNullable(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56)), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 699 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(multiply(log(toUInt256(2)), log(2), number))) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(multiply(log(toUInt256(2)), log(2), number))) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(multiply(log(toUInt256(2)), log(2), number))) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 700 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY GROUPING SETS ( (POWER(3, 2)), (POWER(2, materialize(toNullable(3))))) WITH TOTALS ORDER BY POW(POW(toLowCardinality(3), 2), 2) ASC, k ASC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY GROUPING SETS ((POWER(3, 2)), (POWER(2, materialize(toNullable(3))))) WITH TOTALS ORDER BY POW(POW(toLowCardinality(3), 2), 2) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 701 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 703 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(materialize(toLowCardinality(toNullable(2)))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 704 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(avg(log(toNullable(2)) * number), materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(avg(log(toNullable(2)) * number), materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 3, round(avg(log(avg(log(toNullable(2)) * number), materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 706 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', toUInt256(3), if(dateDiff(toNullable(toNullable('second')), toDateTime(toNullable(5), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, toNullable(toNullable(3))) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', toUInt256(3), if(dateDiff(toNullable(toNullable('second')), toDateTime(toNullable(5), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, toNullable(toNullable(3))) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', toUInt256(3), if(dateDiff(toNullable(toNullable('second')), toDateTime(toNullable(5), time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), round(avg(log(toLowCardinality(2)) * number)) AS k FROM numbers(10000000) WHERE toLowCardinality(3) GROUP BY POWER(3, 2), POWER(2, toNullable(toNullable(3))) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 708 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE numbers(6) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE numbers(6) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) WHERE numbers(6) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 710 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 711 out of 1000 EXPLAIN PIPELINE compact = true SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toNullable(3)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 712 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(toLowCardinality(2))) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 715 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 3, round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 716 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(materialize(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE tupleElement(time, toLowCardinality(1)) GROUP BY POWER(2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE tupleElement(time, toLowCardinality(1)) GROUP BY POWER(2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) PREWHERE tupleElement(time, toLowCardinality(1)) GROUP BY POWER(2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 720 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 722 out of 1000 EXPLAIN ESTIMATE SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN ESTIMATE SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), 2) * number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 723 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toUInt256(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toUInt256(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toUInt256(3)) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 724 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 727 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(pow(3, toLowCardinality(materialize(2))), log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toNullable(toUInt256(3))) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(pow(3, toLowCardinality(materialize(2))), log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, toNullable(toUInt256(3))) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 728 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 729 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(3, 2), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 730 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(3), toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 3, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 732 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 734 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 736 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 737 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 738 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(materialize(toNullable(3)), 3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY clear_column__fuzz_3 ASC, k DESC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(materialize(toNullable(3)), 3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY clear_column__fuzz_3 ASC, k 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 '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(materialize(toNullable(3)), 3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY clear_column__fuzz_3 ASC, k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 741 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k 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 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(2)))) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 742 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(toNullable(2)), POWER(toLowCardinality(2), materialize(toNullable(3))), number))) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(toNullable(2)), POWER(toLowCardinality(2), materialize(toNullable(3))), number))) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k 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 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(toNullable(2)), POWER(toLowCardinality(2), materialize(toNullable(3))), number))) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 743 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 747 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 3), POWER(3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 3), POWER(3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, 3), POWER(3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 749 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 750 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 752 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(avg(multiply(log(toUInt128(2)), toDateTime(tupleElement(time, toLowCardinality(2))), number)) IGNORE NULLS, 10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(avg(multiply(log(toUInt128(2)), toDateTime(tupleElement(time, toLowCardinality(2))), number)) IGNORE NULLS, 10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(multiply(log(_CAST('2', 'UInt128')), toDateTime(tupleElement(time, toLowCardinality(2))), number)) IGNORE NULLS is found in wrong place in query: While processing avg(multiply(log(_CAST('2', 'UInt128')), toDateTime(tupleElement(time, toLowCardinality(2))), number)) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 756 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)) FROM numbers(10000000) GROUP BY POWER(POW(2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)) FROM numbers(10000000) GROUP BY POWER(POW(2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)) FROM numbers(10000000) GROUP BY POWER(POW(2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 757 out of 1000 SELECT round(toString(toUInt128(57), time), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), materialize(63), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT round(toString(toUInt128(57), time), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), materialize(63), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(toString(toUInt128(57), time), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), materialize(63), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 758 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(materialize(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 759 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, toLowCardinality(toUInt128(3))) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, toLowCardinality(toUInt128(3))) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, toLowCardinality(toUInt128(3))) WITH CUBE WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 761 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toUInt128(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), toUInt256(3)), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toUInt128(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), toUInt256(3)), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toUInt128(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), toUInt256(3)), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 762 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 764 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 765 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 766 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 768 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', toNullable(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', toNullable(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', toNullable(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 769 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(round(avg(log(materialize(toLowCardinality(toUInt256(2)))) * number) IGNORE NULLS, 6), multiply(log(2))) IGNORE NULLS) AS k FROM numbers(number % toNullable(2), 10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(round(avg(log(materialize(toLowCardinality(toUInt256(2)))) * number) IGNORE NULLS, 6), multiply(log(2))) IGNORE NULLS) AS k FROM numbers(number % toNullable(2), 10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'number % toNullable(2)', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 770 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 771 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 772 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(2))) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 773 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56 FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56 FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56 FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 774 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toLowCardinality(2)), 3), POWER(toNullable(toUInt256(2)), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toLowCardinality(2)), 3), POWER(toNullable(toUInt256(2)), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toLowCardinality(2)), 3), POWER(toNullable(toUInt256(2)), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 776 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56 FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56 FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56 FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 777 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 778 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(toNullable(2)) * number) IGNORE NULLS) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(avg(log(toNullable(2)) * number) IGNORE NULLS) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Aggregate function avg(log(toNullable(2)) * number) IGNORE NULLS is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 779 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 781 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 782 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(multiply(log(toLowCardinality(toUInt256(2))), materialize(toLowCardinality(2)), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(multiply(log(toLowCardinality(toUInt256(2))), materialize(toLowCardinality(2)), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(multiply(log(toLowCardinality(toUInt256(2))), materialize(toLowCardinality(2)), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 783 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, materialize(2)), 3), POWER(2, 3) WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 249 ('CUBE'): CUBE WITH TOTALS ORDER BY k DESC. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 785 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 786 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 787 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), log(toUInt128(toLowCardinality(2))), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), log(toUInt128(toLowCardinality(2))), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), log(toUInt128(toLowCardinality(2))), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 788 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(toUInt128(2)), 3) WITH CUBE WITH TOTALS ORDER BY numbers(10000000) ASC, k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(toUInt128(2)), 3) WITH CUBE WITH TOTALS ORDER BY numbers(10000000) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(toUInt128(2)), 3) WITH CUBE WITH TOTALS ORDER BY numbers(10000000) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 789 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 790 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(pow(3, 2), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(pow(3, 2), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(pow(3, 2), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 792 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(materialize(toLowCardinality(3))), 3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(materialize(toLowCardinality(3))), 3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(materialize(toLowCardinality(3))), 3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 793 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH ROLLUP WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 220 ('CUBE'): CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Expected TOTALS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 795 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 796 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 797 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 799 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, materialize(3)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, materialize(3)) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 801 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(toUInt128(6), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(toUInt128(6), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 802 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 EXPLAIN SYNTAX SELECT toNullable(toLowCardinality(log(toNullable(materialize(toLowCardinality(2)))), '01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'EXPLAIN SYNTAX SELECT toNullable(toLowCardinality(log(toNullable(materialize(toLowCardinality(2)))), '01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: While processing toNullable(toLowCardinality(log(toNullable(materialize(toLowCardinality(2)))), '01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k: While processing SELECT toNullable(toLowCardinality(log(toNullable(materialize(toLowCardinality(2)))), '01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 10. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 11. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 12. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 13. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:1243: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017769938 14. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 17. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 18. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 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&) @ 0x000000001773fb78 21. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 25. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 26. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 27. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 28. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 30. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf Fuzzing step 804 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(POWER(POW(3, toUInt256(2))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(POWER(POW(3, toUInt256(2))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(POWER(POW(3, toUInt256(2))), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 806 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 807 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 808 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 809 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(toUInt256(3)), 2), 3), POWER(toUInt128(2), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(toUInt256(3)), 2), 3), POWER(toUInt128(2), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(toUInt256(3)), 2), 3), POWER(toUInt128(2), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 810 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(toString(2, 57, POWER(POW(materialize(toUInt256(3)), 2), 2, materialize(3)), time), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(toString(2, 57, POWER(POW(materialize(toUInt256(3)), 2), 2, materialize(3)), time), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(toString(2, 57, POWER(POW(materialize(toUInt256(3)), 2), 2, materialize(3)), time), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 812 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT toNullable(toLowCardinality('01473_trace_log_table_event_start_time_microseconds_test')), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('toNullable'): toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 817 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 818 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 EXPLAIN ESTIMATE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 EXPLAIN ESTIMATE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 822 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE 10000000 GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE 10000000 GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 824 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 827 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 828 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 830 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 831 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 832 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 833 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toNullable'): toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 834 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toNullable'): toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 836 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 837 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 838 out of 1000 EXPLAIN SYNTAX SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 840 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 842 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 843 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 EXPLAIN PIPELINE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 845 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toNullable'): toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 846 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('toNullable'): toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWE. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 848 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 849 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 850 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 851 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 852 out of 1000 EXPLAIN QUERY TREE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 853 out of 1000 EXPLAIN SYNTAX SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 EXPLAIN ESTIMATE SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 EXPLAIN SYNTAX SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 857 out of 1000 EXPLAIN AST SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 EXPLAIN SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 861 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(toNullable(toUInt256(3))), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(toNullable(toUInt256(3))), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(toNullable(toUInt256(3))), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 862 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 864 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 865 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 866 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 867 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 870 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 871 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 872 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE POWER(toNullable(2), 3) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE POWER(toNullable(2), 3) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 873 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(toNullable(2)), pow(power(toLowCardinality(3), 3, 2), 3, 2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(toNullable(2)), pow(power(toLowCardinality(3), 3, 2), 3, 2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, round(avg(multiply(log(toNullable(2)), pow(power(toLowCardinality(3), 3, 2), 3, 2), number)) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 874 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 875 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(toNullable(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 876 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 878 out of 1000 EXPLAIN PIPELINE SELECT toFixedString(toDateTime(tupleElement(time)), '01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT toFixedString(toDateTime(tupleElement(time)), '01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toFixedString(toDateTime(tupleElement(time)), '01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) RESPECT NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 23. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 24. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 879 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), toUInt256(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(materialize(toLowCardinality(toNullable(toUInt256(2)))), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), toUInt256(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(materialize(toLowCardinality(toNullable(toUInt256(2)))), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), toUInt256(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), 2), 3), POWER(materialize(toLowCardinality(toNullable(toUInt256(2)))), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 880 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), materialize(toNullable(2))), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), materialize(toNullable(materialize(2)))), POW(POW(toLowCardinality(3), 2), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), materialize(toNullable(materialize(2)))), POW(POW(toLowCardinality(3), 2), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toNullable(3), materialize(toNullable(materialize(2)))), POW(POW(toLowCardinality(3), 2), 2), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 884 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 885 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(POWER(toNullable(3), materialize(2)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(POWER(toNullable(3), materialize(2)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC': 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 '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(POWER(toNullable(3), materialize(2)), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 887 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 888 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(materialize(2), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(materialize(2), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': 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 '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(materialize(2), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 889 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(toLowCardinality(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 891 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 892 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), toNullable(2)), 3), POWER(toLowCardinality(toUInt256(2)), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), toNullable(2)), 3), POWER(toLowCardinality(toUInt256(2)), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(materialize(3), toNullable(2)), 3), POWER(toLowCardinality(toUInt256(2)), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 894 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, toNullable(2)), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 EXPLAIN PIPELINE SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 896 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (POWER(POW(3, 2), 3)), (POWER(toLowCardinality(2), 3))) WITH CUBE WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((POWER(POW(3, 2), 3)), (POWER(toLowCardinality(2), 3))) WITH CUBE WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 898 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toFixedString('ok', toNullable(2)), toString(time)) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toFixedString('ok', toNullable(2)), toString(time)) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time))) = 0, toFixedString('ok', toNullable(2)), toString(time)) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 899 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY POWER(POW(3, 2), toLowCardinality(3)), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), 56, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY POWER(POW(3, 2), toLowCardinality(3)), POWER(2, 3) WITH CUBE WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 901 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(if(POWER(2, toNullable(toNullable(3))), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(if(POWER(2, toNullable(toNullable(3))), dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(if(POWER(2, toNullable(toNullable(3))), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)), toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 902 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(2), 3) WITH CUBE WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(toLowCardinality(2), 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), materialize(toNullable(56)) FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), materialize(toNullable(56)) FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT toNullable('01473_trace_log_table_event_start_time_microseconds_test'), materialize(56), materialize(toNullable(56)) FROM numbers(10000000) GROUP BY POWER(POW(3, 2), 3), POWER(2, 3) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 905 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(3), 2), 3), POWER(toLowCardinality(2), 3) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', materialize(56), materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) GROUP BY POWER(POW(toLowCardinality(3), 2), 3), POWER(toLowCardinality(2), 3) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 907 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), round(avg(log(toUInt256(toUInt128(3)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), round(avg(log(toUInt256(toUInt128(3)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), round(avg(log(toUInt256(toUInt128(3)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 909 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', if(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)), 57), 3, toUInt128(2)), 2), 3, 2), time), log(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))), toString(POW(2), time)), toLowCardinality(6)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', if(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)), 57), 3, toUInt128(2)), 2), 3, 2), time), log(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))), toString(POW(2), time)), toLowCardinality(6)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(toString(power(POWER(POW(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', if(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)), 57), 3, toUInt128(2)), 2), 3, 2), time), log(materialize(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), 'ok', round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))), toString(POW(2), time)), toLowCardinality(6)), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 910 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 911 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE log(toNullable(2)) * number WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE log(toNullable(2)) * number WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) of column multiply(_CAST(0.6931471805599453_Nullable(Float64), 'Nullable(Float64)'_String), __table1.number) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 912 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 914 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(materialize(2)) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 916 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 918 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 919 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(2)), toUInt128(2)))) = toNullable(0), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 920 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(POW(toLowCardinality(3), 2), 56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POWER(POW(3, toNullable(2)), 2) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(POW(toLowCardinality(3), 2), 56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POWER(POW(3, toNullable(2)), 2) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(toNullable(POW(toLowCardinality(3), 2), 56)), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POWER(POW(3, toNullable(2)), 2) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 922 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, toNullable(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, toNullable(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 924 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, toNullable(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 925 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, toNullable(56), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, toNullable(56), round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 928 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 (''01473_trace_log_table_event_start_time_microseconds_test''): '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 929 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(pow(materialize(3), materialize(materialize(toNullable(2)))), avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(pow(materialize(3), materialize(materialize(toNullable(2)))), avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST': 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 '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(pow(materialize(3), materialize(materialize(toNullable(2)))), avg(log(2) * number)) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 930 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', toLowCardinality(toUInt128(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', toUInt128(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', toUInt128(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(round(max(log(toNullable(2)) * number) RESPECT NULLS), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(round(max(log(toNullable(2)) * number) RESPECT NULLS), 2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 935 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 936 out of 1000 EXPLAIN PIPELINE header = true SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 937 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 938 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 939 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 940 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 941 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 943 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 944 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 945 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt256(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt256(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test'), toLowCardinality(toUInt256(56)), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 946 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 947 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 948 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(3, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(3, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST': 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 '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(3, avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 949 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(multiply(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(toUInt256(6)) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(multiply(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(toUInt256(6)) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(multiply(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(2, 57, POWER(materialize(2), 3), time)), log(2), number)) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(toUInt256(6)) WHERE round(6) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 950 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(equals(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), POW(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(3), 2), 0), 10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(equals(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), POW(3, POW(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(3), 2), 0), 10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'equals(dateDiff(pow(_CAST(9., 'Float64'), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), pow(3, pow(toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(3), 2), 0)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 952 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 953 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 955 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 956 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(6) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(6) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 957 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(6) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(6) WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 958 out of 1000 SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(toNullable(6)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(toNullable(6)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 56, 56, round(avg(multiply(number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(toNullable(6)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 959 out of 1000 SELECT toFixedString(56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toFixedString(56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 1, should be 2: In scope SELECT toFixedString(56), 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 960 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 962 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 963 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), round(avg(multiply(log(2), round(max(log(materialize(2)) * number) IGNORE NULLS), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), round(avg(multiply(log(2), round(max(log(materialize(2)) * number) IGNORE NULLS), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), round(avg(multiply(log(2), round(max(log(materialize(2)) * number) IGNORE NULLS), number)) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 966 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), clear_column__fuzz_38, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), clear_column__fuzz_38, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_38' in scope SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), clear_column__fuzz_38, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 967 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, toUInt256(56), round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 968 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56), 56, round(avg(materialize(toUInt256(toNullable(3))), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, toLowCardinality(56), 56, round(avg(materialize(toUInt256(toNullable(3))), log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 970 out of 1000 EXPLAIN SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(materialize(6)) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, materialize(56), 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) PREWHERE round(materialize(6)) WHERE round(materialize(6)) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:56: DB::InterpreterSelectQueryAnalyzer::extractQueryPlan() && @ 0x0000000017e0783b 8. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3790 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 10. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 971 out of 1000 SELECT '01473_trace_log_table_event_start_time_microseconds_test', 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 974 out of 1000 SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 976 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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 materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 978 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 979 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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 materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 980 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 981 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 982 out of 1000 EXPLAIN ESTIMATE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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 materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 983 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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: While processing materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k: While processing SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 18. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 21. ./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&) @ 0x000000001773fb78 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 23. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 25. ./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) @ 0x0000000017da634c 26. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 28. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 Fuzzing step 984 out of 1000 EXPLAIN TABLE OVERRIDE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 42 ('materialize'): materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 985 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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: While processing materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k: While processing SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 18. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 21. ./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&) @ 0x000000001773fb78 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 23. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 25. ./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) @ 0x0000000017da634c 26. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 28. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 Fuzzing step 986 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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: While processing materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k: While processing SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 18. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 21. ./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&) @ 0x000000001773fb78 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 23. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 25. ./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) @ 0x0000000017da634c 26. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 28. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 Fuzzing step 987 out of 1000 SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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 materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 988 out of 1000 EXPLAIN PIPELINE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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 materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 989 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 991 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 992 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 993 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 994 out of 1000 EXPLAIN QUERY TREE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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 materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 995 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 47 ('materialize'): materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 996 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 997 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 998 out of 1000 EXPLAIN AST SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 999 out of 1000 EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC': 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: While processing materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k: While processing SELECT materialize('01473_trace_log_table_event_start_time_microseconds_test'), 56, 56, 56, round(toNullable(0), avg(log(2) * number) IGNORE NULLS) AS k FROM numbers(10000000) WHERE round(6) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Interpreters/ActionsDAG.cpp:253: DB::ActionsDAG::addFunction(std::shared_ptr const&, std::vector>, String) @ 0x0000000017434af2 12. ./contrib/llvm-project/libcxx/include/string:1499: DB::ScopeStack::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x0000000017763e7a 13. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::Data::addFunction(std::shared_ptr const&, std::vector> const&, String) @ 0x00000000177735fe 14. ./contrib/llvm-project/libcxx/include/string:1499: DB::ActionsMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017766353 15. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:717: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764af4 16. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:0: DB::ActionsMatcher::visit(DB::ASTExpressionList&, std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x000000001776e379 17. ./build_docker/./src/Interpreters/ActionsVisitor.cpp:728: DB::ActionsMatcher::visit(std::shared_ptr const&, DB::ActionsMatcher::Data&) @ 0x0000000017764bf5 18. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775748d 19. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::ExpressionAnalyzer::getRootActions(std::shared_ptr const&, bool, DB::ActionsDAG&, bool) @ 0x00000000177289bc 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::SelectQueryExpressionAnalyzer::appendSelect(DB::ExpressionActionsChain&, bool) @ 0x0000000017738693 21. ./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&) @ 0x000000001773fb78 22. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:1069: DB::InterpreterSelectQuery::getSampleBlockImpl() @ 0x0000000017dbd691 23. ./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 @ 0x0000000017db1e81 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) @ 0x0000000017daa783 25. ./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) @ 0x0000000017da634c 26. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 27. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 28. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 29. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 30. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 31. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 3 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 6 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 7 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 8 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 9 out of 1000 EXPLAIN PIPELINE compact = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 10 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 11 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 12 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 EXPLAIN QUERY TREE passes = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE passes = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 14 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 15 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 16 out of 1000 EXPLAIN QUERY TREE run_passes = true, dump_ast = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE run_passes = true, dump_ast = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 17 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 18 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 EXPLAIN PIPELINE compact = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 20 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 23 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 24 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 27 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 28 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 EXPLAIN PIPELINE header = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE header = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 30 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 31 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 32 out of 1000 EXPLAIN AST graph = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN AST graph = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 33 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 34 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 35 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 36 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 37 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE max(log(POWER(3, 2), avg(log(clear_column__fuzz_1, 2) * number) RESPECT NULLS, 2) * number) GROUP BY number % 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE max(log(POWER(3, 2), avg(log(clear_column__fuzz_1, 2) * number) RESPECT NULLS, 2) * number) GROUP BY number % 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_1' in scope SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE max(log(POWER(3, 2), avg(log(clear_column__fuzz_1, 2) * number) RESPECT NULLS, 2) * number) GROUP BY number % 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), toFixedString('ok', 2), toString(time)) % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 39 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 40 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 41 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 43 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), modulo(toFixedString('ok', toLowCardinality(2)), modulo(number) + (number % 3), 2) ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), modulo(toFixedString('ok', toLowCardinality(2)), modulo(number) + (number % 3), 2) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), modulo(toFixedString('ok', toLowCardinality(2)), modulo(number) + (number % 3), 2) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 44 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers('second', 10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers('second', 10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type String expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 46 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (number % 2), (number % toNullable(3)), (plus(number % 2, numbers(1048576, 10000000), number % 3) % 2)) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((number % 2), (number % toNullable(3)), (plus(number % 2, numbers(1048576, 10000000), number % 3) % 2)) ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((number % 2), (number % toNullable(3)), (plus(number % 2, numbers(1048576, 10000000), number % 3) % 2)) ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 47 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 49 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 50 out of 1000 SELECT max(log(materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(materialize(materialize('01473_query_thread_log_table_event_start_time_microseconds_test')), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 51 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 52 out of 1000 SELECT max(log(dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toNullable(2)))))) = toLowCardinality(0), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toNullable(2)))))) = toLowCardinality(0), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(log(dateDiff('second', toDateTime(power(3, 3, 2), time.1), toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(toNullable(2)))))) = toLowCardinality(0), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 53 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 54 out of 1000 EXPLAIN PIPELINE compact = true SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(toLowCardinality(materialize(toLowCardinality(3))), number, 2), number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(toLowCardinality(materialize(toLowCardinality(3))), number, 2), number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 55 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 56 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 57 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 58 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 59 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 60 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(toLowCardinality(toLowCardinality(toUInt128(3))), 3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(toLowCardinality(toLowCardinality(toUInt128(3))), 3), ((number % 2) + (number % 3)) % 2 ORDER BY k 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 max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(toLowCardinality(toLowCardinality(toUInt128(3))), 3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 61 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), (modulo(2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), (modulo(2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), (modulo(2) + (number % 3)) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 62 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k ASC Got boring AST Fuzzing step 65 out of 1000 SELECT max(toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2))), log(materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2))), log(materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT max(toString(POW(toLowCardinality(POW(toLowCardinality(3), 2), 2))), log(materialize(toFixedString(materialize('01473_metric_log_table_event_start_time_microseconds_test'), 57)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 66 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(number, dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 3)) % 2 ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(number, dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(number, dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 3)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 31. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 Fuzzing step 67 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toNullable(3), ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 69 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), ((number % materialize(2)) + (number % materialize(toNullable(3)))) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), plus(round(avg(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) % 2 ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), plus(round(avg(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), plus(round(avg(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 Fuzzing step 71 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) GROUP BY number % toNullable(2), number % toNullable(3), plus(number % materialize(2), round(avg(log(toLowCardinality(toNullable(toLowCardinality(2)))) * number)), number % materialize(3)) % 2 ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) GROUP BY number % toNullable(2), number % toNullable(3), plus(number % materialize(2), round(avg(log(toLowCardinality(toNullable(toLowCardinality(2)))) * number)), number % materialize(3)) % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 72 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), ((number % materialize(2)) + (number % materialize(toNullable(3)))) % 2 ORDER BY k ASC Got boring AST Fuzzing step 73 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), plus(number % materialize(2), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(toUInt256(2)))))) = toNullable(0), 'ok', toString(time)), number % materialize(toNullable(3))) % 2 ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), plus(number % materialize(2), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(toUInt256(2)))))) = toNullable(0), 'ok', toString(time)), number % materialize(toNullable(3))) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), plus(number % materialize(2), if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(toNullable(toUInt256(2)))))) = toNullable(0), 'ok', toString(time)), number % materialize(toNullable(3))) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 74 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), ((number % materialize(2)) + (number % materialize(toNullable(3)))) % 2 ORDER BY k ASC Got boring AST Fuzzing step 75 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), ((number % materialize(2)) + (number % materialize(toNullable(3)))) % 2 ORDER BY k ASC Got boring AST Fuzzing step 76 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % toNullable(3), ((number % materialize(2)) + (number % materialize(toNullable(3)))) % 2 ORDER BY k ASC Got boring AST Fuzzing step 77 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % toNullable(3))) % 2 WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % toNullable(3))) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % toNullable(3))) % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 80 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT max(round(avg(log(2) * number) IGNORE NULLS), log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) GROUP BY number % 2, modulo(POWER(materialize(3), 2), number, 3), ((number % materialize(2)) + modulo(number, log(toNullable(materialize(toLowCardinality(2)))), 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(round(avg(log(2) * number) IGNORE NULLS), log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) GROUP BY number % 2, modulo(POWER(materialize(3), 2), number, 3), ((number % materialize(2)) + modulo(number, log(toNullable(materialize(toLowCardinality(2)))), 3)) % 2 ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 83 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0, 10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 85 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(POWER(materialize(2), toNullable(3)), (number % materialize(2)) + (number % 3), 2) ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(POWER(materialize(2), toNullable(3)), (number % materialize(2)) + (number % 3), 2) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(POWER(materialize(2), toNullable(3)), (number % materialize(2)) + (number % 3), 2) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 86 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % materialize(2), number % 3, ((number % materialize(2)) + (number % toUInt256(3))) % 2 ORDER BY k DESC Error on processing query 'SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % materialize(2), number % 3, ((number % materialize(2)) + (number % toUInt256(3))) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.029160789 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 87 out of 1000 SELECT POWER(toNullable(3), materialize(2)), max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toUInt256(2))) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT POWER(toNullable(3), materialize(2)), max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toUInt256(2))) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.060429433 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 SELECT max(log(toUInt128(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(toUInt128(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 89 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 2)) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 2)) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(materialize(3))), time), 2)) + (number % 3)) % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 90 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY number % 2, number % 3, (modulo(toLowCardinality(56), number, 2) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY number % 2, number % 3, (modulo(toLowCardinality(56), number, 2) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 91 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)))) ASC, k DESC Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(toNullable(toUInt256(2)))) ASC, k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toNullable(toUInt256(2)))) ASC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 93 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), ((number % materialize(2)) + (number % 3)) % 2 ORDER. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 94 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(toUInt256(2)), number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(toUInt256(2)), number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toNullable(toUInt256(2)), number % 3, ((number % materialize(2)) + (number % 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 95 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Got boring AST Fuzzing step 96 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Got boring AST Fuzzing step 97 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toUInt256(2), number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toUInt256(2), number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.009917575 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 98 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Got boring AST Fuzzing step 99 out of 1000 SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 100 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo((number % materialize(2)) + (number % 3)) ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo((number % materialize(2)) + (number % 3)) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo((number % materialize(2)) + (number % 3)) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 101 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Got boring AST Fuzzing step 102 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 2)) + modulo(number, log(toLowCardinality(2)) * number, 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 2)) + modulo(number, log(toLowCardinality(2)) * number, 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 2)) + modulo(number, log(toLowCardinality(2)) * number, 3)) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 103 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Got boring AST Fuzzing step 104 out of 1000 SELECT max(round(avg(log(materialize(2)) * number)), log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toUInt256(2)))), 10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(round(avg(log(materialize(2)) * number)), log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toUInt256(2)))), 10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, toUInt256(2))))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 105 out of 1000 SELECT max(log(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toLowCardinality(3)), toLowCardinality(2)))) = 0, 2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) GROUP BY number % 2, number % 3, ((number % materialize(toLowCardinality(toNullable(toUInt256(2))))) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(log(dateDiff(POWER(POW(3, 2), 2), 'second', toDateTime(time.1), toDateTime(tupleElement(time, toNullable(toLowCardinality(3)), toLowCardinality(2)))) = 0, 2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) GROUP BY number % 2, number % 3, ((number % materialize(toLowCardinality(toNullable(toUInt256(2))))) + (number % 3)) % 2 ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 106 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(log(toLowCardinality(toUInt256(2))), 10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(log(toLowCardinality(toUInt256(2))), 10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 107 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(modulo(materialize(2)) + (number % 3), toString(2, 57, POWER(2, toLowCardinality(toLowCardinality(toUInt128(3)))), time), 2) ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(modulo(materialize(2)) + (number % 3), toString(2, 57, POWER(2, toLowCardinality(toLowCardinality(toUInt128(3)))), time), 2) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(modulo(materialize(2)) + (number % 3), toString(2, 57, POWER(2, toLowCardinality(toLowCardinality(toUInt128(3)))), time), 2) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 108 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 109 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % materialize(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(toLowCardinality(toNullable(57)), tupleElement(time))) GROUP BY number % toNullable(2), number % 3, ((number % materialize(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(toLowCardinality(toNullable(57)), tupleElement(time))) GROUP BY number % toNullable(2), number % 3, ((number % materialize(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE dateDiff('second', toDateTime(time.1), toDateTime(toLowCardinality(toNullable(57)), tupleElement(time))) GROUP BY number % toNullable(2), number % 3, ((number % materialize(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 111 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(2), number % toLowCardinality(toUInt256(3)), ((number % materialize(2)) + (number % 3)) % toUInt256(2) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(2), number % toLowCardinality(toUInt256(3)), ((number % materialize(2)) + (number % 3)) % toUInt256(2) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.007985968 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 112 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt128(10000000))) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % materialize(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt128(10000000))) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % materialize(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 113 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 SELECT dateDiff('second', toDateTime(tupleElement(modulo(materialize(toUInt256(3))), time, 1)), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, (modulo(2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT dateDiff('second', toDateTime(tupleElement(modulo(materialize(toUInt256(3))), time, 1)), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, (modulo(2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT dateDiff('second', toDateTime(tupleElement(modulo(materialize(toUInt256(3))), time, 1)), toDateTime(time.2)) = toNullable(toUInt128(0)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, (modulo(2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 115 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN PIPELINE SELECT max(multiply(log(2), materialize(toLowCardinality(toLowCardinality(6))), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT max(multiply(log(2), materialize(toLowCardinality(toLowCardinality(6))), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k 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 SELECT max(multiply(log(2), materialize(toLowCardinality(toLowCardinality(6))), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 117 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(toLowCardinality(3)), (modulo(toLowCardinality(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(toLowCardinality(3)), (modulo(toLowCardinality(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(toLowCardinality(3)), (modulo(toLowCardinality(2)) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 118 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(number), ((number % 2) + (number % materialize(3))) % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(number), ((number % 2) + (number % materialize(3))) % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(number), ((number % 2) + (number % materialize(3))) % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 119 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(toUInt256(2))), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(toUInt256(2))), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.005324746 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 120 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 121 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, modulo(toString(power(POWER(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), toNullable(toUInt256(materialize(3))), materialize(2)), time), (number % 2) + modulo(round(avg(log(2) * number) IGNORE NULLS), number, materialize(3)), 2) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, modulo(toString(power(POWER(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), toNullable(toUInt256(materialize(3))), materialize(2)), time), (number % 2) + modulo(round(avg(log(2) * number) IGNORE NULLS), number, materialize(3)), 2) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, modulo(toString(power(POWER(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), toNullable(toUInt256(materialize(3))), materialize(2)), time), (number % 2) + modulo(round(avg(log(2) * number) IGNORE NULLS), number, materialize(3)), 2) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 122 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(materialize(3)), ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(materialize(3)), ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), modulo(materialize(3)), ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 123 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % materialize(3))) % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 124 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % materialize(3))) % 2 WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % 3)) % toUInt128(2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 126 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % 3)) % toUInt128(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % 3)) % toUInt128(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % 3)) % toUInt128(2) WITH CUBE ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 129 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(log(toNullable(materialize(2))) * number, 10000000) GROUP BY modulo(POW(3, 2), number, toLowCardinality(2)), number % 3, ((number % 2) + (number % 3)) % toUInt128(2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(log(toNullable(materialize(2))) * number, 10000000) GROUP BY modulo(POW(3, 2), number, toLowCardinality(2)), number % 3, ((number % 2) + (number % 3)) % toUInt128(2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'log(toNullable(materialize(2))) * number', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 130 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POWER(POW(3, 2), 3) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % 3)) % toUInt128(pow(toNullable(toFixedString('second', 6)), toNullable(2)), 2) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POWER(POW(3, 2), 3) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % 3)) % toUInt128(pow(toNullable(toFixedString('second', 6)), toNullable(2)), 2) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type FixedString(6) of argument of function pow: In scope SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POWER(POW(3, 2), 3) GROUP BY number % toLowCardinality(2), number % 3, ((number % 2) + (number % 3)) % toUInt128(pow(toNullable(toFixedString('second', 6)), toNullable(2)), 2) WITH CUBE ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 131 out of 1000 SELECT max(multiply(log(toLowCardinality(2)))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % 3)) % 2 WITH CUBE ORDER BY k ASC Error on processing query 'SELECT max(multiply(log(toLowCardinality(2)))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % 3)) % 2 WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(log(toLowCardinality(2)))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % 3)) % 2 WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 132 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % materialize(3))) % 2 WITH CUBE ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT log(avg(log(round(avg(log(materialize(2)) * number)), toLowCardinality(2)) * number), 2) * number, max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % materialize(3))) % 2 WITH CUBE ORDER BY k ASC Error on processing query 'SELECT log(avg(log(round(avg(log(materialize(2)) * number)), toLowCardinality(2)) * number), 2) * number, max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % materialize(3))) % 2 WITH CUBE ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT log(avg(log(round(avg(log(materialize(2)) * number)), toLowCardinality(2)) * number), 2) * number, max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % materialize(3))) % 2 WITH CUBE ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 135 out of 1000 SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 WITH CUBE ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 136 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % materialize(3))) % 2 WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % materialize(3))) % 2 WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, k ASC NULLS LAST Got boring AST Fuzzing step 138 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 141 out of 1000 SELECT max(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT max(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, k 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 SELECT max(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 142 out of 1000 SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % toNullable(3))) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % toNullable(3))) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 143 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, modulo(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 144 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2), number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 145 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, k ASC NULLS LAST Got boring AST Fuzzing step 146 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, toLowCardinality(2) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toLowCardinality(toUInt128(3))), toLowCardinality(2) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toLowCardinality(toUInt128(3)), toLowCardinality(POWER(2, 3), 2) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toLowCardinality(toUInt128(3)), toLowCardinality(POWER(2, 3), 2) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, k ASC 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 max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % toLowCardinality(toUInt128(3)), toLowCardinality(POWER(2, 3), 2) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 149 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number, materialize(toUInt128(toLowCardinality(toNullable(3)))), materialize(toLowCardinality(toUInt128(3)))), 2 % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number, materialize(toUInt128(toLowCardinality(toNullable(3)))), materialize(toLowCardinality(toUInt128(3)))), 2 % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number, materialize(toUInt128(toLowCardinality(toNullable(3)))), materialize(toLowCardinality(toUInt128(3)))), 2 % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 150 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toLowCardinality(toUInt128(3))), toLowCardinality(2) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, k ASC NULLS LAST Got boring AST Fuzzing step 151 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toLowCardinality(toUInt128(3))), toLowCardinality(2) % materialize(2) WITH CUBE ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, k ASC NULLS LAST Got boring AST Fuzzing step 152 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toLowCardinality(toUInt128(3))), toLowCardinality(2) % materialize(2) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toLowCardinality(toUInt128(3))), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toLowCardinality(toUInt128(3))), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 155 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toUInt128(3)), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toUInt128(3)), toLowCardinality(2) % materialize(POW(toNullable(materialize(5, 3)), materialize(toLowCardinality(2))), 2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toUInt128(3)), toLowCardinality(2) % materialize(POW(toNullable(materialize(5, 3)), materialize(toLowCardinality(2))), 2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toUInt128(3)), toLowCardinality(2) % materialize(POW(toNullable(materialize(5, 3)), materialize(toLowCardinality(2))), 2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 157 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(toUInt128(3)), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 158 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(round(max(log(2) * number)), 3), toLowCardinality(2) % toNullable(2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(round(max(log(2) * number)), 3), toLowCardinality(2) % toNullable(2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(round(max(log(2) * number)), 3), toLowCardinality(2) % toNullable(2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 159 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(avg(log(toLowCardinality(2)) * number) RESPECT NULLS, toNullable(2)) WITH CUBE ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(avg(log(toLowCardinality(2)) * number) RESPECT NULLS, toNullable(2)) WITH CUBE ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 161 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POW(3, toNullable(2)) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POW(3, toNullable(2)) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 162 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 163 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE POWER(3, materialize(2)) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE POWER(3, materialize(2)) GROUP BY number % 2, number % materialize(3), toLowCardinality(2) % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 164 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 1)), toDateTime(tupleElement(time, materialize(toLowCardinality(log(toNullable(materialize(toUInt128(2)))), '01473_metric_log_table_event_start_time_microseconds_test')), 2))) GROUP BY number % 2, number % 3, 2 % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, 2))) = materialize(0), 1)), toDateTime(tupleElement(time, materialize(toLowCardinality(log(toNullable(materialize(toUInt128(2)))), '01473_metric_log_table_event_start_time_microseconds_test')), 2))) GROUP BY number % 2, number % 3, 2 % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0), 1)), toDateTime(tupleElement(time, materialize(toLowCardinality(log(toNullable(materialize(toUInt128(2)))), '01473_metric_log_table_event_start_time_microseconds_test')), 2))) GROUP BY number % 2, number % 3, 2 % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 165 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY number % 2, number % materialize(3), 2 % materialize(toNullable(2)) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 168 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 169 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 170 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 171 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 172 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 EXPLAIN QUERY TREE dump_passes = true SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE dump_passes = true SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 175 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY pow(power(3, 2), 3, toUInt128(2)), clear_column__fuzz_32, (modulo(2) + (number % materialize(3))) % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY pow(power(3, 2), 3, toUInt128(2)), clear_column__fuzz_32, (modulo(2) + (number % materialize(3))) % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY pow(power(3, 2), 3, toUInt128(2)), clear_column__fuzz_32, (modulo(2) + (number % materialize(3))) % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 176 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 178 out of 1000 EXPLAIN SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 182 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 185 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 186 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 187 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 189 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 190 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 191 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 192 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 193 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 194 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 195 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 197 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 198 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(toUInt128(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(toUInt128(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 200 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(POW(toNullable(toNullable(3)), toLowCardinality(2)), 2) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(POW(toNullable(toNullable(3)), toLowCardinality(2)), 2) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(POW(toNullable(toNullable(3)), toLowCardinality(2)), 2) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 203 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT max(log(toUInt256(56), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT max(log(toUInt256(56), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(toUInt256(56), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 206 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 207 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 208 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 211 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 215 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((log(2))) WITH CUBE ORDER BY materialize(toUInt128(2)) ASC, k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((log(2))) WITH CUBE ORDER BY materialize(toUInt128(2)) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 216 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 217 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 218 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 220 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 221 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 222 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), 2) WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), 2) WITH CUBE ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), 2) WITH CUBE ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 223 out of 1000 SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k 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 SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 224 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 227 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 228 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 229 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 230 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 231 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 232 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 233 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 235 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 236 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC Got boring AST Fuzzing step 237 out of 1000 SELECT POWER(3, toNullable(materialize(2))), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 238 out of 1000 SELECT POWER(3, toNullable(2)), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY log(2) WITH CUBE ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 239 out of 1000 SELECT POWER(3, toNullable(2)), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 EXPLAIN `header, description` = true, indexes = true, sorting = true SELECT POWER(3, toNullable(2)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN `header, description` = true, indexes = true, sorting = true SELECT POWER(3, toNullable(2)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 241 out of 1000 SELECT POWER(3, toNullable(2)), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT POWER(3, toNullable(2)), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 243 out of 1000 SELECT POWER(3, toNullable(2)), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 244 out of 1000 SELECT POWER(3, toNullable(2)), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 245 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY log(2) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((log(2))) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 SELECT POWER(3, 2), max(multiply(log(2), pow(materialize(POW(3), power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2), max(multiply(log(2), pow(materialize(POW(3), power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(3, 2), max(multiply(log(2), pow(materialize(POW(3), power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 251 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 252 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 253 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(3)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WHERE toNullable(toUInt256(3)) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 254 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 255 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 256 out of 1000 SELECT POWER(3, 2), max(log(materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2), max(log(materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(3, 2), max(log(materialize(tupleElement(time, toLowCardinality(1)), toLowCardinality(toUInt128(6))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 257 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 258 out of 1000 SELECT POWER(3, 2), max(multiply(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), log(2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2), max(multiply(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), log(2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT POWER(3, 2), max(multiply(toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), log(2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 259 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 262 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 263 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 265 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 267 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 268 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 270 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 271 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 272 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 273 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 276 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 279 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 280 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 281 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 282 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 283 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 284 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 287 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 288 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 289 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 290 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 291 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 292 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 293 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 295 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 296 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 297 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WHERE round(avg(log(toNullable(toUInt256(6)), 2) * number), toString(dateDiff(toNullable(avg(log(toLowCardinality(toUInt128(2))) * number), 'second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), 6) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WHERE round(avg(log(toNullable(toUInt256(6)), 2) * number), toString(dateDiff(toNullable(avg(log(toLowCardinality(toUInt128(2))) * number), 'second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), 6) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WHERE round(avg(log(toNullable(toUInt256(6)), 2) * number), toString(dateDiff(toNullable(avg(log(toLowCardinality(toUInt128(2))) * number), 'second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), time), 6) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 298 out of 1000 SELECT POWER(3, 2), max(dateDiff(toDateTime(tupleElement(time, 1)), toDateTime(time.2)), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, 2), max(dateDiff(toDateTime(tupleElement(time, 1)), toDateTime(time.2)), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(3, 2), max(dateDiff(toDateTime(time.1), toDateTime(time.2)), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 299 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 300 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 302 out of 1000 SELECT POWER(3, toUInt256(2)), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, toUInt256(2)), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(3, toUInt256(2)), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 303 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 304 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) PREWHERE materialize(toUInt128(3)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) PREWHERE materialize(toUInt128(3)) WITH TOTALS ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 308 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 309 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 310 out of 1000 EXPLAIN AST SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 311 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 313 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 314 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 315 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 316 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 318 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 319 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 321 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 322 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 323 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 324 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 325 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 326 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 327 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 328 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 329 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 330 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 331 out of 1000 SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY plus(numbers(10000000), number % 2, modulo(3)) % 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY plus(numbers(10000000), number % 2, modulo(3)) % 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY plus(numbers(10000000), number % 2, modulo(3)) % 2, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', 2, toString(time)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 332 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 333 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 334 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 335 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 336 out of 1000 EXPLAIN SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 337 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 339 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 340 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 341 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 342 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 344 out of 1000 SELECT POWER(toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT POWER(toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY pow(toNullable(3), toLowCardinality(materialize(pow(power(3, 3, 2), 3, 2), 2))) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY pow(toNullable(3), toLowCardinality(materialize(pow(power(3, 3, 2), 3, 2), 2))) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) GROUP BY pow(toNullable(3), toLowCardinality(materialize(pow(power(3, 3, 2), 3, 2), 2))) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 346 out of 1000 SELECT POWER(toLowCardinality(3)), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(toLowCardinality(3)), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(toLowCardinality(3)), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 347 out of 1000 SELECT POWER(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toNullable(63)) ASC, k DESC Error on processing query 'SELECT POWER(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toNullable(63)) ASC, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toNullable(63)) ASC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 348 out of 1000 SELECT POWER(toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 SELECT power(materialize(3), 2), POWER(toLowCardinality(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT power(materialize(3), 2), POWER(toLowCardinality(3), 2), max(log(materialize(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 351 out of 1000 SELECT power(materialize(3), 2), POWER(toLowCardinality(3), 2), max(log(materialize(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 352 out of 1000 SELECT power(materialize(3), 2), POWER(toLowCardinality(3), 2), max(log(materialize(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))) DESC, k ASC Error on processing query 'SELECT power(materialize(3), 2), POWER(toLowCardinality(3), 2), max(log(materialize(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))) DESC, k ASC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(materialize(3), 2), POWER(toLowCardinality(3), 2), max(log(materialize(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POWER(POW(materialize(3), materialize(2)), materialize(toUInt256(2))) DESC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 353 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 354 out of 1000 SELECT power(pow(toLowCardinality(toUInt128(3)), materialize(2)), materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(pow(toLowCardinality(toUInt128(3)), materialize(2)), materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(pow(toLowCardinality(toUInt128(3)), materialize(2)), materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 355 out of 1000 SELECT power(materialize(3), 2), POWER(3), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(materialize(3), 2), POWER(3), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(materialize(3), 2), POWER(3), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 356 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 357 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 358 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 359 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 360 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 361 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 363 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(toLowCardinality(toNullable(2), toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(materialize(3), 2), POWER(3, 2), max(log(toLowCardinality(toNullable(2), toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 power(materialize(3), 2), POWER(3, 2), max(log(toLowCardinality(toNullable(2), toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 364 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 SELECT power(materialize(materialize(3), 3)), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT power(materialize(materialize(3), 3)), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT power(materialize(materialize(3), 3)), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 366 out of 1000 SELECT power(materialize(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 367 out of 1000 SELECT power(materialize(toLowCardinality(3)), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 370 out of 1000 SELECT power(toLowCardinality(POWER(POW(toNullable(3), 2), 2), toNullable(3)), 2), POWER(toNullable(3), 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) GROUP BY POW(2), power(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(POWER(POW(toNullable(3), 2), 2), toNullable(3)), 2), POWER(toNullable(3), 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) GROUP BY POW(2), power(toLowCardinality(3), 2) WITH TOTALS ORDER BY k 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 power(toLowCardinality(POWER(POW(toNullable(3), 2), 2), toNullable(3)), 2), POWER(toNullable(3), 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) GROUP BY POW(2), power(toLowCardinality(3), 2) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 371 out of 1000 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 372 out of 1000 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 373 out of 1000 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(multiply(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), log(toLowCardinality(toUInt256(2))), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(multiply(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), log(toLowCardinality(toUInt256(2))), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(multiply(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), log(toLowCardinality(toUInt256(2))), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 374 out of 1000 SELECT power(2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(2), POWER(3, 2), max(log(toLowCardinality(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 375 out of 1000 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT power(toLowCardinality(toUInt128(3)), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(toLowCardinality(toUInt128(3)), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(toLowCardinality(toUInt128(3)), 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 377 out of 1000 SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(POWER(3, toLowCardinality(2)), log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(POWER(3, toLowCardinality(2)), log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 378 out of 1000 SELECT power(toLowCardinality(toUInt256(3)), 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(toLowCardinality(toUInt256(3)), 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(toLowCardinality(toUInt256(3)), 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 379 out of 1000 EXPLAIN TABLE OVERRIDE SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT power(toLowCardinality(3), 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('power'): power(toLowCardinality(3), 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 380 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 382 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 383 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toUInt256(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 384 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 386 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 387 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 388 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 389 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 390 out of 1000 SELECT power(3, 2), POWER(number % 5, 3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT power(3, 2), POWER(number % 5, 3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, 2), POWER(number % 5, 3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 391 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 392 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 394 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 395 out of 1000 SELECT power(3, 2), POWER(2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT power(3, 2), POWER(2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3, 2), POWER(2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 396 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 398 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toUInt128(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toUInt128(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 400 out of 1000 SELECT power(3), POWER(3, 2), max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3), POWER(3, 2), max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3), POWER(3, 2), max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 401 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toUInt128(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 402 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toUInt128(2))) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toUInt128(2))) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k ASC': 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 403 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 405 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 406 out of 1000 SELECT power(3, materialize(2)), POWER(3, 2), max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3, materialize(2)), POWER(3, 2), max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT power(3, materialize(2)), POWER(3, 2), max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 407 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 408 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 409 out of 1000 SELECT power(3, 2), POWER(3, 2), max(toString(2, 57, POWER(POW(3, toUInt256(2))), time), log(toNullable(toNullable(2))) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT power(3, 2), POWER(3, 2), max(toString(2, 57, POWER(POW(3, toUInt256(2))), time), log(toNullable(toNullable(2))) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(3, 2), POWER(3, 2), max(toString(2, 57, POWER(POW(3, toUInt256(2))), time), log(toNullable(toNullable(2))) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 410 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 411 out of 1000 SELECT power(3, pow(toNullable(3), 2), 2), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT power(3, pow(toNullable(3), 2), 2), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, pow(toNullable(3), 2), 2), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 412 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 414 out of 1000 SELECT power(3), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT power(3), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT power(3), POWER(3, 2), max(log(toNullable(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 415 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 416 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 417 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 420 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POW(toLowCardinality(POW(toLowCardinality(toFixedString(toFixedString('ok', 2), 2), 3), toNullable(2)), 2)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POW(toLowCardinality(POW(toLowCardinality(toFixedString(toFixedString('ok', 2), 2), 3), toNullable(2)), 2)) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT power(3, 2), POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POW(toLowCardinality(POW(toLowCardinality(toFixedString(toFixedString('ok', 2), 2), 3), toNullable(2)), 2)) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 421 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 423 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT power(toLowCardinality(toNullable(toUInt128(3))), 2), POWER(toLowCardinality(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(toUInt128(2))) ASC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT power(toLowCardinality(toNullable(toUInt128(3))), 2), POWER(toLowCardinality(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(toUInt128(2))) ASC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT power(toLowCardinality(toNullable(toUInt128(3))), 2), POWER(toLowCardinality(3), 2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('ok', toNullable(toUInt128(2))) ASC NULLS FIRST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 425 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 426 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 428 out of 1000 SELECT power(toUInt256(3), 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT power(toUInt256(3), 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT power(toUInt256(3), 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 429 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 430 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(clear_column__fuzz_10, 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(clear_column__fuzz_10, 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'clear_column__fuzz_10' while processing query: 'clear_column__fuzz_10', required columns: 'clear_column__fuzz_10' 'clear_column__fuzz_10'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 432 out of 1000 SELECT power(3, 2), POWER(toLowCardinality(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 433 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 435 out of 1000 SELECT power(3, 2), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 436 out of 1000 SELECT power(3, materialize(2)), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 SELECT power(3, materialize(2)), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(3)), time), 10000000) WHERE toLowCardinality(toUInt128(3)) WITH TOTALS ORDER BY POW(toLowCardinality(2)) ASC, k DESC Error on processing query 'SELECT power(3, materialize(2)), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(3)), time), 10000000) WHERE toLowCardinality(toUInt128(3)) WITH TOTALS ORDER BY POW(toLowCardinality(2)) ASC, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT power(3, materialize(2)), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toString(2, 57, POWER(POW(materialize(3), 2), 2, materialize(3)), time), 10000000) WHERE toLowCardinality(toUInt128(3)) WITH TOTALS ORDER BY POW(toLowCardinality(2)) ASC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 438 out of 1000 SELECT power(3, materialize(2)), POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 439 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 441 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 442 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 443 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 444 out of 1000 SELECT POWER(toLowCardinality(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2)), toLowCardinality(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0), 'ok', toString(2)), toLowCardinality(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 446 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 448 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 449 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 450 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(FixedString(57)). In query SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE toFixedString(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 451 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 452 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 453 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT POWER(3, 2), max(log(power(toLowCardinality(3), toNullable(3), 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(3, 2), max(log(power(toLowCardinality(3), toNullable(3), 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(3, 2), max(log(power(toLowCardinality(3), toNullable(3), 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 455 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT POWER(3, 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 457 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 458 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 459 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 460 out of 1000 SELECT POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 SELECT POWER(toNullable(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(power(materialize(3), 2), 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toNullable(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(power(materialize(3), 2), 10000000) WITH TOTALS ORDER BY k 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): pow(materialize(3), 2). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 462 out of 1000 EXPLAIN AST graph = true SELECT POWER(3, 2), max(multiply(log(toNullable(2)), avg(log(2) * number), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN AST graph = true SELECT POWER(3, 2), max(multiply(log(toNullable(2)), avg(log(2) * number), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 463 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT POWER(3, toUInt256(2)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, toUInt256(2)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(3, toUInt256(2)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 465 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 468 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(toLowCardinality(toNullable(3)), 2), max(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT POWER(toLowCardinality(toNullable(3)), 2), max(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 469 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 470 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 471 out of 1000 SELECT POWER(3, 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 472 out of 1000 EXPLAIN `header, description` = true, actions = true SELECT POWER(pow(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), 3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'EXPLAIN `header, description` = true, actions = true SELECT POWER(pow(materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3), 2), 3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 473 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 476 out of 1000 SELECT POWER(3, materialize(toUInt256(2))), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, materialize(toUInt256(2))), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POWER(3, materialize(toUInt256(2))), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 477 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 478 out of 1000 SELECT POWER(3, 2), max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT POWER(3, 2), max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 10000000) WITH TOTALS ORDER BY log(toLowCardinality(materialize(toNullable(2)))) ASC, k DESC Error on processing query 'SELECT POWER(3, 2), max(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test')), 10000000) WITH TOTALS ORDER BY log(toLowCardinality(materialize(toNullable(2)))) ASC, k DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(String)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 480 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 482 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 484 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 485 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE modulo(toUInt128(toNullable(toUInt128(3))), number, 2) % toUInt256(3) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE modulo(toUInt128(toNullable(toUInt128(3))), number, 2) % toUInt256(3) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE modulo(toUInt128(toNullable(toUInt128(3))), number, 2) % toUInt256(3) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 487 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 488 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 489 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 490 out of 1000 SELECT POWER(3, 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 491 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 492 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 493 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 494 out of 1000 SELECT POWER(3, toLowCardinality(2)), max(log(materialize(63), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toString(57, POWER(toLowCardinality(3), 2), time), POWER(POW(3)), time) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, toLowCardinality(2)), max(log(materialize(63), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toString(57, POWER(toLowCardinality(3), 2), time), POWER(POW(3)), time) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT POWER(3, toLowCardinality(2)), max(log(materialize(63), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toString(57, POWER(toLowCardinality(3), 2), time), POWER(POW(3)), time) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 495 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 496 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 497 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 498 out of 1000 SELECT POWER(3, 2), max(clear_column__fuzz_44, log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT POWER(3, 2), max(clear_column__fuzz_44, log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_44' in scope SELECT POWER(3, 2), max(clear_column__fuzz_44, log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 499 out of 1000 SELECT POWER(3, 2), max(log(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(materialize(2), 3), time)), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2), max(log(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(materialize(2), 3), time)), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(3, 2), max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(materialize(2), 3), time)), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 500 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT POWER(3, materialize(2)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT POWER(3, materialize(2)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 503 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 504 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 505 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 508 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 509 out of 1000 SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 511 out of 1000 SELECT POWER(3, toLowCardinality(toUInt128(2))), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT POWER(3, toLowCardinality(toUInt128(2))), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT POWER(3, toLowCardinality(toUInt128(2))), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 512 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 513 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 515 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 516 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 517 out of 1000 EXPLAIN PIPELINE header = true SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT POWER(3, 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 518 out of 1000 SELECT POWER(3, 2), max(round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, materialize(6)), log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, 2), max(round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, materialize(6)), log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 519 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 520 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, 2), max(round(avg(log(materialize(2)) * number) IGNORE NULLS), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT POWER(3, 2), max(round(avg(log(materialize(2)) * number) IGNORE NULLS), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 20. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 21. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 521 out of 1000 SELECT POWER(3, 2), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 522 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 524 out of 1000 EXPLAIN AST SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 525 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 526 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 527 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 528 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 530 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 531 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 EXPLAIN PIPELINE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 533 out of 1000 EXPLAIN QUERY TREE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 SELECT POWER(3, 2), max(multiply(pow(power(3, 3, 2), 3, 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, 2), max(multiply(pow(power(3, 3, 2), 3, 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POWER(3, 2), max(multiply(pow(power(3, 3, 2), 3, 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 536 out of 1000 EXPLAIN SYNTAX SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 537 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 538 out of 1000 EXPLAIN ESTIMATE SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 541 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT POWER(3, materialize(2)), max(multiply(log(materialize(toUInt256(2))))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3, materialize(2)), max(multiply(log(materialize(toUInt256(2))))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT POWER(3, materialize(2)), max(multiply(log(materialize(toUInt256(2))))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 543 out of 1000 SELECT POWER(3), max(log(materialize(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(3), max(log(materialize(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(3), max(log(materialize(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 544 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(toUInt256(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(toUInt256(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 546 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(toUInt256(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 547 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(toUInt256(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 548 out of 1000 SELECT POWER(3, materialize(2)), max(log(materialize(toUInt256(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 549 out of 1000 SELECT POWER(3, 2), max(log(materialize(toUInt256(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT POWER(3, 2), max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT POWER(3, 2), max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 552 out of 1000 SELECT materialize(toUInt256(63)), POWER(3, 2), max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time), 10000000) GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), toFixedString(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT materialize(toUInt256(63)), POWER(3, 2), max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time), 10000000) GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), toFixedString(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT materialize(toUInt256(63)), POWER(3, 2), max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(toString(toUInt128(2), 57, POWER(toNullable(2), toLowCardinality(3), 2), time), 10000000) GROUP BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)), toFixedString(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, toNullable(3), 2), '01473_metric_log_table_event_start_time_microseconds_test', 57) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 553 out of 1000 SELECT POWER(3, 2), max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT POWER(3, 2), max(multiply(log(toUInt256(toNullable(materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 2))))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2), max(multiply(log(toUInt256(toNullable(materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 2))))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function materialize doesn't match: passed 2, should be 1: In scope SELECT POWER(3, 2), max(multiply(log(toUInt256(toNullable(materialize(toNullable('01473_trace_log_table_event_start_time_microseconds_test'), 56), 2))))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 555 out of 1000 SELECT POWER(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT POWER(3, 2) FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 556 out of 1000 SELECT POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), POWER(3, toLowCardinality(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, 'ok', toString(time)), POWER(3, toLowCardinality(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(3, 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)), POWER(3, toLowCardinality(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 557 out of 1000 SELECT POWER(3, 2), max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 558 out of 1000 SELECT POWER(3, 2), max(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 SELECT POWER(3, toLowCardinality(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS, materialize(toLowCardinality(3))), 2), max(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT POWER(3, toLowCardinality(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS, materialize(toLowCardinality(3))), 2), max(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT POWER(3, toLowCardinality(avg(log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS, materialize(toLowCardinality(3))), 2), max(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 560 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 561 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 562 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 564 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(2)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(2)) WITH TOTALS ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 565 out of 1000 EXPLAIN TABLE OVERRIDE SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('POWER'): POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY k DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 566 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT POWER(toLowCardinality(toNullable(3)), 2), max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 567 out of 1000 SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE log(toNullable(2)) * number WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT POWER(toLowCardinality(toNullable(3)), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE log(toNullable(2)) * number WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) of column multiply(_CAST(0.6931471805599453_Nullable(Float64), 'Nullable(Float64)'_String), __table1.number) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))), max(log(2) * number), number % materialize(2) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))), max(log(2) * number), number % materialize(2) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))), max(log(2) * number), number % materialize(2) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 571 out of 1000 EXPLAIN QUERY TREE SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 573 out of 1000 EXPLAIN SYNTAX SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN SYNTAX SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 575 out of 1000 EXPLAIN PIPELINE SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 577 out of 1000 EXPLAIN SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 578 out of 1000 EXPLAIN SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 579 out of 1000 EXPLAIN SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 580 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POWER'): POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 581 out of 1000 EXPLAIN SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 582 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT POWER(toNullable(3), 2), max(log(if(dateDiff('second', toDateTime(tupleElement(time, power(3, toNullable(2)), 1)), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(toNullable(3), 2), max(log(if(dateDiff('second', toDateTime(tupleElement(time, power(3, toNullable(2)), 1)), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(toNullable(3), 2), max(log(if(dateDiff('second', toDateTime(tupleElement(time, power(3, toNullable(2)), 1)), toDateTime(time.2)) = toNullable(0), materialize(toNullable('ok', 2)), toString(time)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 584 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 585 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, k ASC NULLS LAST Error on processing query 'SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 586 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toNullable(3), 2), max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 587 out of 1000 SELECT POWER(toNullable(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT POWER(toNullable(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 589 out of 1000 SELECT POWER(toNullable(3), 2), max(log(toNullable(round(avg(log(materialize(toUInt128(pow(3, toNullable(2)), 2))) * number)), 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(toNullable(3), 2), max(log(toNullable(round(avg(log(materialize(toUInt128(pow(3, toNullable(2)), 2))) * number)), 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': 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 POWER(toNullable(3), 2), max(log(toNullable(round(avg(log(materialize(toUInt128(pow(3, toNullable(2)), 2))) * number)), 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f8a2f 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 590 out of 1000 SELECT POWER(toNullable(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT POWER(toNullable(3), 2), max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 593 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 595 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT POWER(toNullable(3), 2), max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 596 out of 1000 SELECT POWER(toNullable(3), 2), max(multiply(log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT POWER(toNullable(3), 2), max(multiply(log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT POWER(toNullable(3), 2), max(multiply(log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 597 out of 1000 SELECT POWER(toNullable(3), 2), max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 598 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 599 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 600 out of 1000 SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 601 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 602 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 603 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 605 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 606 out of 1000 SELECT max(toUInt128(materialize(toLowCardinality(2))), multiply(65536, log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT max(toUInt128(materialize(toLowCardinality(2))), multiply(65536, log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT max(toUInt128(materialize(toLowCardinality(2))), multiply(65536, log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 607 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 608 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 609 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 611 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 612 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize('01473_query_thread_log_table_event_start_time_microseconds_test') WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 614 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 616 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 617 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 618 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 619 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = toNullable(0), 10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff(toNullable('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(2))) = toNullable(0), 10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 621 out of 1000 EXPLAIN PIPELINE header = true SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE header = true SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 622 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 623 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 624 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 625 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 626 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 627 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 629 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 630 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 631 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 632 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 633 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(toUInt128(57))) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(toUInt128(57))) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt128) of column materialize(_CAST('57'_LowCardinality(UInt128), 'LowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 634 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 635 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 636 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 637 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(toLowCardinality(57)) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 638 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 640 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(clear_column__fuzz_44, 57) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(clear_column__fuzz_44, 57) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_44' in scope SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(clear_column__fuzz_44, 57) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 641 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 642 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 643 out of 1000 SELECT max(log(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(toLowCardinality(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57)), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 644 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(0) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = materialize(0) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 646 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 647 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 648 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 649 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'))), 2))) = 0 WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'))), 2))) = 0 WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) PREWHERE dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'))), 2))) = 0 WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 652 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0) ASC, k ASC Error on processing query 'SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0) ASC, k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 654 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 656 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(toUInt128(57)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(toUInt128(57)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of column materialize(_CAST('57'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 657 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 658 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 659 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 660 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT avg(log(toLowCardinality(2)) * number), max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) RESPECT NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) RESPECT NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 664 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT avg(multiply(log(2))) IGNORE NULLS, max(log(materialize(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(multiply(log(2))) IGNORE NULLS, max(log(materialize(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(log(2))) IGNORE NULLS, max(log(materialize(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 666 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) * number ASC, k DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) * number ASC, k DESC': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) * number ASC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 9. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 667 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 668 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 669 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 670 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(materialize(toNullable(10000000))) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(materialize(2))) * number) AS k FROM numbers(materialize(toNullable(10000000))) WHERE materialize(57) WITH TOTALS ORDER BY k 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 671 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS, max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 EXPLAIN AST graph = true SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN AST graph = true SELECT max(log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 674 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(toUInt256(57)) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(toUInt256(57)) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column materialize(_CAST('57'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 SELECT max(toNullable(2), log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(toNullable(2), log(toUInt128(2)) * number) AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x0000000016270334 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 676 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3), 2))), toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) GROUP BY toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time), POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 2) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3), 2))), toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) GROUP BY toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time), POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 2) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3), 2))), toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) GROUP BY toString(toUInt128(2, 57), POWER(toUInt256(2), 3, 2), time), POW(POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2), 2) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 678 out of 1000 SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 680 out of 1000 SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 681 out of 1000 SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 682 out of 1000 SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(toNullable(materialize(toUInt128(2)))) * number WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(toNullable(materialize(toUInt128(2)))) * number WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f769 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757ce11 8. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 684 out of 1000 SELECT max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 SELECT max(POWER(POW(toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3), 2), log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(POWER(POW(toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3), 2), log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT max(POWER(POW(toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), 3), 2), log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 686 out of 1000 SELECT max(round(max(log(toLowCardinality(2)) * number)), log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(round(max(log(toLowCardinality(2)) * number)), log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 687 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 689 out of 1000 SELECT max(log(toUInt128(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 690 out of 1000 SELECT max(multiply(2, log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT max(multiply(2, log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT max(multiply(2, log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 691 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 693 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 694 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 695 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 696 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 698 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 699 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 EXPLAIN SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 701 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 703 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 704 out of 1000 EXPLAIN SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 EXPLAIN SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 706 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 707 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 708 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT max(log(log(POWER(3, toNullable(toUInt128(2))), avg(log(toNullable(2)) * number) RESPECT NULLS, 2) * number, 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT max(log(log(POWER(3, toNullable(toUInt128(2))), avg(log(toNullable(2)) * number) RESPECT NULLS, 2) * number, 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT max(log(log(POWER(3, toNullable(toUInt128(2))), avg(log(toNullable(2)) * number) RESPECT NULLS, 2) * number, 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008719289 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 710 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 711 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 712 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 716 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 717 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 718 out of 1000 SELECT max(numbers(pow(3, toUInt256(2)), 6), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(numbers(pow(3, toUInt256(2)), 6), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT max(numbers(pow(3, toUInt256(2)), 6), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 719 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE materialize(57) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 720 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 722 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 723 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 724 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 726 out of 1000 SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 727 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 EXPLAIN PIPELINE compact = true SELECT max(multiply(materialize(toLowCardinality(2)), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT max(multiply(materialize(toLowCardinality(2)), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 729 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 730 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt256(10000000))) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt256(10000000))) WITH TOTALS ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 731 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 732 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) PREWHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 733 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 734 out of 1000 SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WHERE toUInt128(6) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WHERE toUInt128(6) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 735 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 736 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 737 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 738 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 740 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 741 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 742 out of 1000 EXPLAIN SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 EXPLAIN SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 744 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 745 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 747 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 748 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 749 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 750 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 752 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 753 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 754 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 755 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 756 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 757 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 758 out of 1000 EXPLAIN AST SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 759 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 761 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 763 out of 1000 EXPLAIN SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 766 out of 1000 SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 SELECT max(multiply(POWER(2, toNullable(toNullable(3))), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(multiply(POWER(2, toNullable(toNullable(3))), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT max(multiply(POWER(2, toNullable(toNullable(3))), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 768 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 769 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 770 out of 1000 SELECT max(multiply(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(multiply(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(multiply(POW(toNullable(toLowCardinality(3)), pow(3, 2), 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 771 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 772 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 773 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 774 out of 1000 SELECT max(multiply(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT max(multiply(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(multiply(power(POWER(POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2), 2), 3, 2), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 775 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 776 out of 1000 SELECT max(log(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 777 out of 1000 SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY plus(round(avg(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) % 2 ASC, k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY plus(round(avg(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(toLowCardinality(2))))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) % 2 ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 778 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE toUInt256(materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE toUInt256(materialize(toNullable(3))) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) of column toUInt256(materialize(_CAST(3_Nullable(UInt8), 'Nullable(UInt8)'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 779 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 780 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 781 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 782 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 783 out of 1000 SELECT max(multiply(log(2), round(max(log(log(toUInt128(2)) * number, materialize(toUInt256(2))) * number)), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(multiply(log(2), round(max(log(log(toUInt128(2)) * number, materialize(toUInt256(2))) * number)), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(multiply(log(2), round(max(log(log(toUInt128(2)) * number, materialize(toUInt256(2))) * number)), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 784 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 785 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 786 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 787 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 788 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 789 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 790 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 791 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 792 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE POW(toLowCardinality(3), toLowCardinality(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE POW(toLowCardinality(3), toLowCardinality(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 793 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 794 out of 1000 SELECT round(max(log(toLowCardinality(2)) * number)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(max(log(toLowCardinality(2)) * number)), max(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt32)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 795 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 796 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 797 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 798 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 799 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(toFixedString(materialize(pow(toNullable(3), materialize(toNullable(2))), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)), toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(toFixedString(materialize(pow(toNullable(3), materialize(toNullable(2))), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)), toNullable(10000000)) WITH TOTALS ORDER BY k 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 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(materialize(toFixedString(materialize(pow(toNullable(3), materialize(toNullable(2))), toNullable('01473_query_thread_log_table_event_start_time_microseconds_test')), 63)), toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 800 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS, 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(max(log(toUInt128(toUInt256(2))) * number) IGNORE NULLS, 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max(multiply(log(_CAST('2', 'UInt128')), number)) IGNORE NULLS is found in wrong place in query: While processing max(log(_CAST('2', 'UInt128')) * number) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 802 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 803 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 804 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(2) ASC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(2) ASC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 806 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY round(log(toUInt256(2)), 6), round(6), log(POWER(3, toNullable(toUInt128(2))), avg(log(2) * number) RESPECT NULLS, 2) * number WITH TOTALS ORDER BY log(2) ASC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY round(log(toUInt256(2)), 6), round(6), log(POWER(3, toNullable(toUInt128(2))), avg(log(2) * number) RESPECT NULLS, 2) * number WITH TOTALS ORDER BY log(2) ASC NULLS LAST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 807 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT max(multiply(log(materialize(2)), power(toNullable(3), 2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(multiply(log(materialize(2)), power(toNullable(3), 2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT max(multiply(log(materialize(2)), power(toNullable(3), 2), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 809 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 810 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 811 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 812 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 813 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 815 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY (modulo(2) + (number % materialize(3))) % 2 ASC, k ASC Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY (modulo(2) + (number % materialize(3))) % 2 ASC, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY (modulo(2) + (number % materialize(3))) % 2 ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 816 out of 1000 SELECT max(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT max(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT max(toFixedString(3, POW(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', materialize(57), 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 817 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 818 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number) ASC, k ASC Error on processing query 'SELECT max(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number) ASC, k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(if(dateDiff('second', toDateTime(time.1)) = 0, toFixedString('ok', 2), toString(time)), log(2) * number) ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 819 out of 1000 SELECT max(log(toLowCardinality(toUInt128(toLowCardinality(toNullable(POWER(materialize(2), 3), 3)))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT max(log(toLowCardinality(toUInt128(toLowCardinality(toNullable(POWER(materialize(2), 3), 3)))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toNullable doesn't match: passed 2, should be 1: In scope SELECT max(log(toLowCardinality(toUInt128(toLowCardinality(toNullable(POWER(materialize(2), 3), 3)))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 820 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 821 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 822 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 823 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 824 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 826 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 827 out of 1000 SELECT max(multiply(number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT max(multiply(number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY k 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 SELECT max(multiply(number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 828 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 829 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT max(log(log(toUInt128(2)), 2) * number) AS k FROM numbers(power(3, 2), toLowCardinality(10000000)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS FIRST Error on processing query 'SELECT max(log(log(toUInt128(2)), 2) * number) AS k FROM numbers(power(3, 2), toLowCardinality(10000000)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 831 out of 1000 SELECT max(multiply(number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Error on processing query 'SELECT max(multiply(number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k 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 SELECT max(multiply(number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 832 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 SELECT POWER(POW(toNullable(materialize(3)), 2), POWER(POW(toNullable(3), materialize(2)), 2), 2), max(multiply(number)) AS k FROM numbers(power(2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS LAST Error on processing query 'SELECT POWER(POW(toNullable(materialize(3)), 2), POWER(POW(toNullable(3), materialize(2)), 2), 2), max(multiply(number)) AS k FROM numbers(power(2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POWER(POW(toNullable(materialize(3)), 2), POWER(POW(toNullable(3), materialize(2)), 2), 2), max(multiply(number)) AS k FROM numbers(power(2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 835 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 837 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 838 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 840 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 841 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 844 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 846 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 848 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 849 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 851 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 852 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 855 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 857 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 859 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 863 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 864 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 865 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 866 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 867 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 868 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 869 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 870 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 871 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 872 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 874 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 875 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 876 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 878 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 879 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 880 out of 1000 EXPLAIN SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 881 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 882 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 883 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 884 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 885 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 886 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 887 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 890 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 892 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS LAST Got boring AST Fuzzing step 894 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 899 out of 1000 SELECT toString(2, 57, POWER(POW(3)), time), max(log(2) * number) AS k FROM numbers(power(3, 2), toLowCardinality(10000000)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Error on processing query 'SELECT toString(2, 57, POWER(POW(3)), time), max(log(2) * number) AS k FROM numbers(power(3, 2), toLowCardinality(10000000)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Got boring AST Fuzzing step 901 out of 1000 SELECT max(multiply(log(2), materialize(materialize(3)), number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST Error on processing query 'SELECT max(multiply(log(2), materialize(materialize(3)), number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k 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 SELECT max(multiply(log(2), materialize(materialize(3)), number)) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 902 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(power(3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(log(2) * number) AS k FROM numbers(power(3, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 905 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Got boring AST Fuzzing step 906 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE round(avg(log(clear_column__fuzz_6, toLowCardinality(2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE round(avg(log(clear_column__fuzz_6, toLowCardinality(2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_6' in scope SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE round(avg(log(clear_column__fuzz_6, toLowCardinality(2)) * number) IGNORE NULLS) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 907 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, toLowCardinality(2)), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(power(3, toLowCardinality(2)), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 908 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: Nullable(String). In query SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE toNullable(materialize('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 909 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: LowCardinality(String). In query SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WHERE toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 910 out of 1000 SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(power(3, 2), 10000000) WHERE toLowCardinality(toUInt128(56)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS AS k FROM numbers(power(3, 2), 10000000) WHERE toLowCardinality(toUInt128(56)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 911 out of 1000 SELECT toNullable(0), max(log(((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2), 2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC Error on processing query 'SELECT toNullable(0), max(log(((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2), 2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toNullable(0), max(log(((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2), 2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 912 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2), 10000000) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Got boring AST Fuzzing step 913 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Got boring AST Fuzzing step 915 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 916 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Got boring AST Fuzzing step 917 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Got boring AST Fuzzing step 918 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Got boring AST Fuzzing step 919 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 924 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 925 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT max(multiply(toDateTime(tupleElement(time, toLowCardinality(1))), log(toNullable(2)), number)) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT max(multiply(toDateTime(tupleElement(time, toLowCardinality(1))), log(toNullable(2)), number)) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(multiply(toDateTime(tupleElement(time, toLowCardinality(1))), log(toNullable(2)), number)) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 927 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 928 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, toLowCardinality(2))) WHERE 38 GROUP BY (number % 2) % toUInt256(3), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, toLowCardinality(2))) WHERE 38 GROUP BY (number % 2) % toUInt256(3), dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 929 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k ASC NULLS LAST Got boring AST Fuzzing step 931 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, materialize(toUInt128(2)))) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) AS k FROM numbers(power(3, materialize(toUInt128(2)))) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt128 of argument of function pow: In scope SELECT max(log(2) * number) AS k FROM numbers(power(3, materialize(toUInt128(2)))) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) ASC NULLS FIRST, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 932 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3)) WHERE '0.0000000007' WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS LAST Error on processing query 'SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3)) WHERE '0.0000000007' WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3)) WHERE '0.0000000007' WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 934 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 935 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS LAST, k ASC NULLS LAST Got boring AST Fuzzing step 936 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 38 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 256 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 256 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 939 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 940 out of 1000 SELECT max(materialize(57), log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS LAST Error on processing query 'SELECT max(materialize(57), log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 941 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 942 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 943 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 945 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 946 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 947 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 948 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 949 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 951 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 952 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 954 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 955 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 956 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 958 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 960 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 961 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 963 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 965 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 966 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 967 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 969 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 970 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 971 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 972 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 975 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 976 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 977 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 979 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Got boring AST Fuzzing step 980 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 981 out of 1000 SELECT max(log(toNullable(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 985 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 986 out of 1000 SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 987 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 989 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 990 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 991 out of 1000 EXPLAIN AST SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Got boring AST Fuzzing step 992 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 1048575 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 1048575 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 995 out of 1000 SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 996 out of 1000 SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 997 out of 1000 SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(toFixedString(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 57), 3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 998 out of 1000 SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 999 out of 1000 SELECT max(log(toUInt256(2)) * number) AS k FROM numbers(power(3, 2)) WHERE 10 WITH TOTALS ORDER BY round(max(log(2) * number) IGNORE NULLS) DESC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 3 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Got boring AST Fuzzing step 4 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Got boring AST Fuzzing step 5 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 6 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC Got boring AST Fuzzing step 8 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 10 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 11 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % materialize(toNullable(5))) * (number % 5) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 12 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % toNullable(5)) * (number % 5) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 13 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % toNullable(5)) * (number % 5) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 14 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % toNullable(5)) * (number % 5) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 15 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) GROUP BY number % 5, (number % toNullable(5)) * (number % 5) ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) GROUP BY number % 5, (number % toNullable(5)) * (number % 5) ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 16 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % toNullable(5)) * (number % 5) ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 17 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 21 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 22 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 23 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 24 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 26 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 29 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 30 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 31 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 33 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 34 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 36 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 37 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 38 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 39 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 41 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 43 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 44 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 47 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 49 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 50 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 53 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 54 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY k DESC Got boring AST Fuzzing step 55 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Got boring AST Fuzzing step 57 out of 1000 EXPLAIN PIPELINE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 EXPLAIN SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 EXPLAIN SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Got boring AST Fuzzing step 60 out of 1000 EXPLAIN SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Got boring AST Fuzzing step 61 out of 1000 EXPLAIN SYNTAX SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN PIPELINE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 EXPLAIN PIPELINE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Got boring AST Fuzzing step 64 out of 1000 EXPLAIN SYNTAX SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC Got boring AST Fuzzing step 67 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 69 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 70 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 71 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY number % 5, (number % 5) * (number % 5) ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 73 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 75 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 76 out of 1000 SELECT avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k ASC NULLS FIRST Error on processing query 'SELECT avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k 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 SELECT avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 77 out of 1000 SELECT dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 78 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 79 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 80 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 82 out of 1000 EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 83 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 85 out of 1000 SELECT avg(log(log(materialize(toUInt128(2))) * number, 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(log(materialize(toUInt128(2))) * number, 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(log(materialize(toUInt128(2))) * number, 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 86 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT avg(POW(POW(3, 2), 2), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT avg(POW(POW(3, 2), 2), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC Query succeeded, using this AST as a start Fuzzing step 89 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC Got boring AST Fuzzing step 90 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 92 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 93 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 94 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 95 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS LAST Got boring AST Fuzzing step 96 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k DESC NULLS LAST Error on processing query 'SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 98 out of 1000 EXPLAIN PIPELINE SELECT avg(log(power(toLowCardinality(toNullable(3)), 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(power(toLowCardinality(toNullable(3)), 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(power(toLowCardinality(toNullable(3)), 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 25. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 26. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 99 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY power(materialize(3), 2), round(max(log(materialize(2)) * number)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY power(materialize(3), 2), round(max(log(materialize(2)) * number)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max(log(materialize(2)) * number) is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 100 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 102 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 103 out of 1000 SELECT avg(modulo(number, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)), 2), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC Error on processing query 'SELECT avg(modulo(number, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)), 2), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(modulo(number, if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)), 2), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 104 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST, k DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toString(2, 57, POWER(POW(3, 2), 2, materialize(3)), time) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 105 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 109 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 110 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 111 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 112 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 113 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 114 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Got boring AST Fuzzing step 115 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 116 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 117 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 118 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 119 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 120 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 121 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 125 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 126 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 127 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 134 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 135 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 136 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 137 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 138 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 139 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 140 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 143 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 145 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 146 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 148 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 150 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 151 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 153 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toLowCardinality(2), toString(time)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 155 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 156 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 157 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS FIRST Got boring AST Fuzzing step 158 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 SELECT avg(toNullable(toNullable(63)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST Error on processing query 'SELECT avg(toNullable(toNullable(63)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 160 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS FIRST Got boring AST Fuzzing step 161 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS FIRST Got boring AST Fuzzing step 162 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT avg(toNullable(toNullable(63)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k DESC NULLS LAST Error on processing query 'SELECT avg(toNullable(toNullable(63)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 164 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 165 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, number % 3 DESC, k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, number % 3 DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, number % 3 DESC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 9. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 166 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 168 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 170 out of 1000 EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC, k ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 171 out of 1000 SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 172 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(max(log(toUInt256(2)) * number) IGNORE NULLS, 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(max(log(toUInt256(2)) * number) IGNORE NULLS, 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max(multiply(log(_CAST('2', 'UInt256')), number)) IGNORE NULLS is found in wrong place in query: While processing max(log(_CAST('2', 'UInt256')) * number) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 173 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k ASC Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 174 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 175 out of 1000 SELECT avg(log(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 2) * number) IGNORE NULLS AS k FROM numbers(dateDiff(toNullable(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), toNullable('second')), toDateTime(time.1), toDateTime(toNullable(0), time.2)), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57), 2) * number) IGNORE NULLS AS k FROM numbers(dateDiff(toNullable(round(avg(log(toUInt128(2)) * number) IGNORE NULLS, toLowCardinality(6)), toNullable('second')), toDateTime(time.1), toDateTime(toNullable(0), time.2)), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(multiply(log(_CAST('2', 'UInt128')), number)) IGNORE NULLS is found in wrong place in query: While processing avg(log(_CAST('2', 'UInt128')) * number) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752319 7. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 8. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 9. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 10. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 12. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863e2 13. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 14. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 15. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 16. ./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 @ 0x0000000015ea812a 17. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 18. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 176 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 177 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 178 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 179 out of 1000 SELECT avg(multiply(log(2), toLowCardinality(toNullable(toUInt256(2))), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Error on processing query 'SELECT avg(multiply(log(2), toLowCardinality(toNullable(toUInt256(2))), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k 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 SELECT avg(multiply(log(2), toLowCardinality(toNullable(toUInt256(2))), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 180 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 181 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(log(toUInt256(toNullable(2))) * number, 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(log(toUInt256(toNullable(2))) * number, 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'log(_CAST('2', 'Nullable(UInt256)')) * number', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 182 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, log(toNullable(toUInt128(2))) * number ASC, k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, log(toNullable(toUInt128(2))) * number ASC, k ASC': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, log(toNullable(toUInt128(2))) * number ASC, k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 9. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 183 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k DESC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 184 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST, k ASC NULLS FIRST Got boring AST Fuzzing step 185 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 186 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 190 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 191 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 192 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 194 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 195 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 196 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 197 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 198 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 199 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 200 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 201 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 203 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 205 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 206 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 207 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 209 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 211 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 215 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 216 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 218 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 219 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 220 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 221 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 222 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 224 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 225 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 226 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 227 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 228 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 230 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 231 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 232 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 233 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 234 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 235 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 236 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 237 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 238 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 239 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 240 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 243 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 244 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 245 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 246 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 247 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 248 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 250 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 251 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 255 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 256 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 258 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 261 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 262 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 263 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 264 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 265 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 266 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 267 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 269 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 270 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 271 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 272 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 273 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 274 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 275 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 276 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 277 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 278 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 279 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 280 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 281 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 282 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 283 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 284 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 287 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 288 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 289 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 290 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 291 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 292 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 293 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 294 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 295 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 296 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 297 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 298 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 299 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 300 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 301 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 302 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 304 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 305 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN PIPELINE compact = true SELECT avg(multiply(log(toLowCardinality(2)) * number, log(2), number)) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt128(10000000))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT avg(multiply(log(toLowCardinality(2)) * number, log(2), number)) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt128(10000000))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 308 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toLowCardinality(toNullable(0)), POWER(materialize(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 309 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(materialize(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 310 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(materialize(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 311 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(materialize(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 312 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 313 out of 1000 SELECT avg(toUInt128(materialize(2)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT avg(toUInt128(materialize(2)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 314 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 316 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE log(toLowCardinality(2)) GROUP BY toNullable(0), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE log(toLowCardinality(2)) GROUP BY toNullable(0), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 317 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 318 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 319 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 321 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 322 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 323 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 324 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 325 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(toUInt256(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 326 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toNullable(toUInt256(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 327 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 329 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 330 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH CUBE WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 331 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 332 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 333 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(toUInt128(0)))), POWER(materialize(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(toUInt128(0)))), POWER(materialize(3), 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 337 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(toUInt128(0)))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57), toUInt128(0)))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57), toUInt128(0)))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57, 57), toUInt128(0)))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 339 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(toUInt128(0)))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 340 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(clear_column__fuzz_4, toUInt128(toUInt128(0))), POWER(3, 2) WITH ROLLUP WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(clear_column__fuzz_4, toUInt128(toUInt128(0))), POWER(3, 2) WITH ROLLUP WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_4' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(clear_column__fuzz_4, toUInt128(toUInt128(0))), POWER(3, 2) WITH ROLLUP WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 341 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT avg(toLowCardinality(6), log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(toLowCardinality(6), log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 343 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE POWER(toLowCardinality(2), 3) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY (number % materialize(2)) + (number % toNullable(3)) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE POWER(toLowCardinality(2), 3) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY (number % materialize(2)) + (number % toNullable(3)) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE POWER(toLowCardinality(2), 3) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY (number % materialize(2)) + (number % toNullable(3)) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 8. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 9. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 10. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 11. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755711a 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 344 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 345 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(log(materialize(toNullable(2))) * number, 0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(log(materialize(toNullable(2))) * number, 0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(log(materialize(toNullable(2))) * number, 0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 346 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE avg(log(toLowCardinality(toLowCardinality(2))) * number) GROUP BY toUInt256(toUInt128(materialize(clear_column__fuzz_17, 0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE avg(log(toLowCardinality(toLowCardinality(2))) * number) GROUP BY toUInt256(toUInt128(materialize(clear_column__fuzz_17, 0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_17' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE avg(log(toLowCardinality(toLowCardinality(2))) * number) GROUP BY toUInt256(toUInt128(materialize(clear_column__fuzz_17, 0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 348 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(materialize(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 349 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(materialize(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(round(avg(log(toUInt256(2)) * number)), 10000000) GROUP BY materialize(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(round(avg(log(toUInt256(2)) * number)), 10000000) GROUP BY materialize(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Aggregate function avg(multiply(log(_CAST('2', 'UInt256')), number)) is found in wrong place in query: While processing avg(log(_CAST('2', 'UInt256')) * number). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752319 7. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor const>::visitChildren(std::shared_ptr const&) @ 0x0000000017752324 8. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863e2 9. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 10. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 11. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 12. ./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 @ 0x0000000015ea812a 13. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 14. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 351 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(materialize(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 353 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 354 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 355 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, toLowCardinality(toUInt256(2))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, toLowCardinality(toUInt256(2))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, toLowCardinality(toUInt256(2))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 356 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 357 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 358 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (toUInt256(0)), (POWER(3, 2))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((toUInt256(0)), (POWER(3, 2))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5300: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfd53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 359 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 360 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 361 out of 1000 SELECT avg(multiply(POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), log(2), number)) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toLowCardinality(toUInt128(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT avg(multiply(POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), log(2), number)) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toLowCardinality(toUInt128(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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 SELECT avg(multiply(POWER(POW(toNullable(toNullable(3)), toLowCardinality(2)), 3), log(2), number)) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toLowCardinality(toUInt128(0))), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 362 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(pow(3, clear_column__fuzz_39, materialize(toNullable(2))), 10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(pow(3, clear_column__fuzz_39, materialize(toNullable(2))), 10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Missing columns: 'clear_column__fuzz_39' while processing query: 'pow(3, clear_column__fuzz_39, materialize(toNullable(2)))', required columns: 'clear_column__fuzz_39' 'clear_column__fuzz_39'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 364 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 365 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) DESC, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) DESC, toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) DESC, toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 366 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 367 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 369 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 370 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 371 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) GROUP BY toUInt256(0), POWER(3, materialize(2)) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 373 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 374 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable(10000000))) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable(10000000))) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt32)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 375 out of 1000 SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 376 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 377 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 378 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 379 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 380 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 381 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 382 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 383 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 384 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 385 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 386 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 387 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 389 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 390 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 392 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 393 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 394 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 396 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 398 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 399 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 400 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 401 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 402 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 406 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 407 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 409 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 411 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 412 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 413 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 414 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 415 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 416 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 417 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 419 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 420 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 421 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 422 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 423 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 424 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 425 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 426 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 427 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 428 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 429 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 430 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 431 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 432 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 433 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 434 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 435 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 436 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 437 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 439 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 440 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), 10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0), 10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = toLowCardinality(0)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 442 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 443 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE '0' GROUP BY toUInt256(0), POWER(3, 2) ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE '0' GROUP BY toUInt256(0), POWER(3, 2) ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Invalid type for filter in WHERE: String. In query SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE '0' GROUP BY toUInt256(0), POWER(3, 2) ORDER BY toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x00000000175555f9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 444 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 446 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 448 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(toUInt128(0)), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 449 out of 1000 EXPLAIN PIPELINE compact = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 450 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Positional argument number 0 is out of bounds. Expected in range [1, 1]. In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY 0, POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, unsigned long&, unsigned long&&, String&&) @ 0x000000001723230c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::replaceNodesWithPositionalArguments(std::shared_ptr&, std::vector, std::allocator>> const&, DB::IdentifierResolveScope&) @ 0x00000000174f309c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175167f3 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 452 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt256(0), POWER(3, 2) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 456 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT toNullable(toLowCardinality(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 SELECT toNullable(toLowCardinality(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 459 out of 1000 SELECT toNullable(toLowCardinality(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 460 out of 1000 SELECT toNullable(toLowCardinality(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 461 out of 1000 SELECT toNullable(toLowCardinality(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toString(time)), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT toNullable(toLowCardinality(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toString(time)), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Wrong number of arguments for function 'if' (2 instead of 3): While processing if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))) = 0, toString(time)). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, unsigned long&&) @ 0x0000000009321840 4. ./build_docker/./src/Interpreters/OptimizeIfWithConstantConditionVisitor.cpp:87: DB::OptimizeIfWithConstantConditionVisitorData::visit(DB::ASTFunction&, std::shared_ptr&) @ 0x00000000181c5c34 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&) @ 0x000000001819e3ff 6. ./build_docker/./src/Interpreters/TreeOptimizer.cpp:583: DB::TreeOptimizer::optimizeIf(std::shared_ptr&, std::unordered_map, std::hash, std::equal_to, std::allocator>>>&, bool, bool) @ 0x00000000181957e2 7. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1529: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018185f9f 8. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 9. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 10. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 11. ./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 @ 0x0000000015ea812a 12. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 13. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 462 out of 1000 EXPLAIN PIPELINE header = true SELECT toNullable(toLowCardinality(toLowCardinality(3))), avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT toNullable(toLowCardinality(toLowCardinality(3))), avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 463 out of 1000 SELECT toNullable(3), avg(toLowCardinality(toLowCardinality(2)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT toNullable(3), avg(toLowCardinality(toLowCardinality(2)), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 464 out of 1000 SELECT toNullable(toLowCardinality(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 465 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT toNullable(3), avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(materialize(toUInt256(2))) * number WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT toNullable(3), avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(materialize(toUInt256(2))) * number WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable(3), avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), materialize('ok'), toString(POW(POWER(POW(3, toNullable(2)), POWER(3, toNullable(toLowCardinality(2))), 2), POW(3, toNullable(2)), 2))), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(materialize(toUInt256(2))) * number WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 467 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 468 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 469 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 470 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 471 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 472 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 473 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 474 out of 1000 SELECT 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 476 out of 1000 SELECT 3, toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 477 out of 1000 SELECT 3, toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 478 out of 1000 SELECT 3, toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 479 out of 1000 SELECT 3, toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 480 out of 1000 SELECT toNullable(3), toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 481 out of 1000 SELECT toNullable(3), toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT toNullable(3), toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT toNullable(3), toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 484 out of 1000 SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 485 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 486 out of 1000 SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 487 out of 1000 SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 488 out of 1000 SELECT 3, 2, avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 489 out of 1000 SELECT toLowCardinality(3), 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT toLowCardinality(3), 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 490 out of 1000 SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 491 out of 1000 SELECT materialize(3), 2, avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) PREWHERE dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT materialize(3), 2, avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) PREWHERE dateDiff(toNullable(toNullable('second')), toDateTime(time.1), toDateTime(tupleElement(2))) = toNullable(0) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 492 out of 1000 SELECT 3, 2, avg(multiply(log(2), materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2, avg(multiply(log(2), materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT 3, 2, avg(multiply(log(2), materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 493 out of 1000 SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT 3, toNullable(2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 SELECT 3, 2, avg(log(toUInt256(log(materialize(toLowCardinality(2))) * number, 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2, avg(log(toUInt256(log(materialize(toLowCardinality(2))) * number, 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC': 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 3, 2, avg(log(toUInt256(log(materialize(toLowCardinality(2))) * number, 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780e86c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 497 out of 1000 EXPLAIN PIPELINE compact = true SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 498 out of 1000 SELECT 3, 2, avg(log(toUInt256(log(materialize(toLowCardinality(2))) * number, 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2, avg(log(toUInt256(log(materialize(toLowCardinality(2))) * number, 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': 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 3, 2, avg(log(toUInt256(log(materialize(toLowCardinality(2))) * number, 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780e86c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 499 out of 1000 SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 500 out of 1000 SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 501 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(toUInt128(toNullable(3)), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN PIPELINE SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(toUInt128(toNullable(3)), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 502 out of 1000 SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 503 out of 1000 SELECT 3, 2, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 504 out of 1000 EXPLAIN PIPELINE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 506 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 507 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 508 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 509 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 510 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 511 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 512 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('toNullable'): toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 513 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 514 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('toNullable'): toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 515 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('toNullable'): toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 516 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 517 out of 1000 EXPLAIN SYNTAX SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 518 out of 1000 EXPLAIN PIPELINE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 519 out of 1000 EXPLAIN PIPELINE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 520 out of 1000 EXPLAIN PIPELINE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 521 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 523 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 524 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 525 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 526 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 527 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 528 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 529 out of 1000 EXPLAIN QUERY TREE SELECT toNullable(3), 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 530 out of 1000 SELECT toNullable(3), 2, avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 531 out of 1000 SELECT toNullable(3), 2, avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 532 out of 1000 SELECT toNullable(3), avg(log(2) * number), 2, avg(multiply(log(toLowCardinality(toNullable(2))), toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT toNullable(3), avg(log(2) * number), 2, avg(multiply(log(toLowCardinality(toNullable(2))), toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT toNullable(3), avg(log(2) * number), 2, avg(multiply(log(toLowCardinality(toNullable(2))), toLowCardinality(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 533 out of 1000 SELECT toNullable(3), 2, avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT toNullable(3), 2, avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 535 out of 1000 SELECT toNullable(3), 2, avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 536 out of 1000 SELECT toNullable(3), 2, avg(multiply(log(toLowCardinality(toNullable(2))))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(max(log(toNullable(2)) * number) RESPECT NULLS) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT toNullable(3), 2, avg(multiply(log(toLowCardinality(toNullable(2))))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(max(log(toNullable(2)) * number) RESPECT NULLS) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT toNullable(3), 2, avg(multiply(log(toLowCardinality(toNullable(2))))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(max(log(toNullable(2)) * number) RESPECT NULLS) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 537 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3, materialize(2)), time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 538 out of 1000 SELECT toNullable(3), 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 539 out of 1000 SELECT toNullable(3), 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 540 out of 1000 SELECT toNullable(3), 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 541 out of 1000 SELECT toNullable(3), 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT toNullable(3), 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 542 out of 1000 SELECT 3, 2, avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 544 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 546 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 547 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt32)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 548 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 549 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 550 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 552 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 553 out of 1000 SELECT 3, 2, avg(log(toNullable(toLowCardinality(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 554 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 555 out of 1000 SELECT 3, toNullable(toUInt128(2)), avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, toNullable(toUInt128(2)), avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 556 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toString(power(POWER(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), toNullable(toUInt256(3)), materialize(2)), time), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toString(power(POWER(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), toNullable(toUInt256(3)), materialize(2)), time), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(toString(power(POWER(POW(toNullable(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), 2), toNullable(toUInt256(3)), materialize(2)), time), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 557 out of 1000 SELECT 3, 2, avg(multiply(log(toNullable(2)))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, avg(multiply(log(toNullable(2)))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) 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 SELECT 3, 2, avg(multiply(log(toNullable(2)))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 558 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, ((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2) ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, ((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2) ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, ((number % 2) + modulo(round(max(log(toLowCardinality(2)) * number) IGNORE NULLS), number, 3)) % materialize(2) ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 559 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 560 out of 1000 SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(numbers(pow(3, toUInt256(2)), 6), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(numbers(pow(3, toUInt256(2)), 6), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 3, 2, avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(numbers(pow(3, toUInt256(2)), 6), 10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./contrib/llvm-project/libcxx/include/vector:1596: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e90f5 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 561 out of 1000 SELECT 3, 2, avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 562 out of 1000 SELECT 3, 2, avg(log(toNullable(materialize(toUInt128(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 563 out of 1000 SELECT 3, 2, avg(log(toNullable(materialize(toUInt128(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT 3, toUInt256(2), avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 565 out of 1000 SELECT 3, toUInt256(2), avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 566 out of 1000 SELECT 3, toUInt256(2), avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT 3, toUInt256(2), avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE k WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, toUInt256(2), avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE k WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(materialize(2)) * number) IGNORE NULLS AS k is found in WHERE in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017555d31 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 569 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 EXPLAIN PIPELINE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 571 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 572 out of 1000 EXPLAIN ESTIMATE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 573 out of 1000 EXPLAIN AST SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN AST SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 575 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 577 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 578 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 579 out of 1000 EXPLAIN QUERY TREE SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 580 out of 1000 EXPLAIN SYNTAX SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT materialize(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 584 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 585 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE power(3) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE power(3) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE power(3) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 587 out of 1000 SELECT toUInt128(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT 3, 2, avg(log(toUInt128(2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, avg(log(toUInt128(2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, 2, avg(log(toUInt128(2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 590 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 591 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 593 out of 1000 SELECT toUInt256(3), 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT 3, 2, avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 595 out of 1000 SELECT 3, 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT 3, 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 597 out of 1000 SELECT 3, 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT 3, 2, avg(multiply(log(2), materialize(materialize(3)), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, avg(multiply(log(2), materialize(materialize(3)), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT 3, 2, avg(multiply(log(2), materialize(materialize(3)), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 599 out of 1000 SELECT 3, 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 600 out of 1000 SELECT 3, 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 603 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 604 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 606 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 607 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 608 out of 1000 SELECT 3, 2, avg(multiply(log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(multiply(log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) 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 SELECT 3, 2, avg(multiply(log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 609 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 611 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 612 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 613 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 44 ('3'): 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullab. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 614 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 615 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 616 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 617 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 618 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 619 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 620 out of 1000 EXPLAIN SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 621 out of 1000 EXPLAIN SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 622 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 623 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 624 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 625 out of 1000 EXPLAIN AST SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 626 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 627 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 628 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 629 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 630 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 631 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 632 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 633 out of 1000 SELECT 3, 2, avg(log(POWER(toNullable(materialize(3)), materialize(materialize(2))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, 2, avg(log(POWER(toNullable(materialize(3)), materialize(materialize(2))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, 2, avg(log(POWER(toNullable(materialize(3)), materialize(materialize(2))), 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 634 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 635 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 636 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 637 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 638 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 639 out of 1000 SELECT 3, 2, avg(avg(log(toNullable(toLowCardinality(toUInt128(2)))) * number) IGNORE NULLS, log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(avg(log(toNullable(toLowCardinality(toUInt128(2)))) * number) IGNORE NULLS, log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 640 out of 1000 SELECT toUInt256(3), 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 641 out of 1000 SELECT toUInt256(3), 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 642 out of 1000 SELECT toUInt256(3), 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 643 out of 1000 SELECT toUInt256(3), 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 644 out of 1000 SELECT toUInt256(3), 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 645 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 647 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 648 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 649 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 650 out of 1000 SELECT materialize(3), 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT materialize(3), 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 652 out of 1000 SELECT materialize(3), 2, avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT materialize(3), 2, avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 653 out of 1000 SELECT materialize(3), 2, avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT materialize(3), 2, avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 654 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 655 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 656 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 660 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 663 out of 1000 SELECT 3, 2, avg(multiply(log(2))) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(toLowCardinality(3), toLowCardinality(2)), POW(3, toLowCardinality(toUInt256(2)))), time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2, avg(multiply(log(2))) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(toLowCardinality(3), toLowCardinality(2)), POW(3, toLowCardinality(toUInt256(2)))), time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, 2, avg(multiply(log(2))) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(toLowCardinality(3), toLowCardinality(2)), POW(3, toLowCardinality(toUInt256(2)))), time)) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 664 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 666 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 667 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 669 out of 1000 SELECT 3, 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 SELECT 3, 2, toUInt128(materialize(toUInt128(0))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 SELECT 3, 2, toUInt128(materialize(toUInt128(0))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 672 out of 1000 SELECT 3, 2, toUInt128(materialize(toUInt128(0))), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(3)), max(log(toNullable(2)) * number) RESPECT NULLS, if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize(POWER(2, 3), 'ok'), toString(time)), multiply(clear_column__fuzz_26, log(2), number) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, toUInt128(materialize(toUInt128(0))), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toLowCardinality(toLowCardinality(3)), max(log(toNullable(2)) * number) RESPECT NULLS, if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(toNullable(2))))) = 0, materialize(POWER(2, 3), 'ok'), toString(time)), multiply(clear_column__fuzz_26, log(2), number) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 673 out of 1000 SELECT 3, 2, toUInt128(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POWER(POW(3, toNullable(2)), 2), POW(3, materialize(57), 2), 2))), toUInt128(0)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, toUInt128(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POWER(POW(3, toNullable(2)), 2), POW(3, materialize(57), 2), 2))), toUInt128(0)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 2, toUInt128(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(POW(POWER(POW(3, toNullable(2)), 2), POW(3, materialize(57), 2), 2))), toUInt128(0)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 674 out of 1000 SELECT 3, 2, toUInt128(materialize(toUInt128(0))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 675 out of 1000 SELECT 3, 2, materialize(toUInt128(0)), avg(log(clear_column__fuzz_34, 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, materialize(toUInt128(0)), avg(log(clear_column__fuzz_34, 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_34' in scope SELECT 3, 2, materialize(toUInt128(0)), avg(log(clear_column__fuzz_34, 2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 676 out of 1000 SELECT 3, 2, toUInt128(toUInt128(0)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 678 out of 1000 SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 679 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 3, 2, toUInt128(0), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 3, 2, toUInt128(0), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 680 out of 1000 SELECT 3, 2, toUInt128(0), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, toUInt128(0), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 681 out of 1000 SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 682 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 684 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 685 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 687 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 688 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('3'): 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNulla. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 691 out of 1000 EXPLAIN AST SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 EXPLAIN AST SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 693 out of 1000 EXPLAIN AST SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 694 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 696 out of 1000 SELECT 3, 2, toUInt128(0), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT 3, 2, toUInt128(0), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, toUInt128(0), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 698 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 699 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT 3, 2, 0, avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2, 0, avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, 2, 0, avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 701 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 702 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, 0, avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 704 out of 1000 SELECT 3, 2, 0, avg(multiply(POW(3, toUInt256(2)), log(2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, 0, avg(multiply(POW(3, toUInt256(2)), log(2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT 3, 2, 0, avg(multiply(POW(3, toUInt256(2)), log(2), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 705 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 46 ('3'): 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowC. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 706 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY max(log(toLowCardinality(toUInt128(materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), 2))) * number), materialize(materialize(toLowCardinality(2))), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY max(log(toLowCardinality(toUInt128(materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), 2))) * number), materialize(materialize(toLowCardinality(2))), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = materialize(0) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': 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 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY max(log(toLowCardinality(toUInt128(materialize(toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63)), 2))) * number), materialize(materialize(toLowCardinality(2))), dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = materialize(0) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 707 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 708 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(toUInt128(2)) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC NULLS LAST, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT 3, 2, materialize(0), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(toUInt128(2)) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC NULLS LAST, round(toNullable(toLowCardinality(6))) DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT 3, 2, materialize(0), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC NULLS LAST, round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 SELECT 3, 2, materialize(0), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC NULLS LAST, round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 712 out of 1000 SELECT 3, 2, materialize(0), avg(multiply(log(2), 1, number)) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, materialize(0), avg(multiply(log(2), 1, number)) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) 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 SELECT 3, 2, materialize(0), avg(multiply(log(2), 1, number)) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, round(toNullable(toLowCardinality(6))) DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 713 out of 1000 SELECT 3, 2, materialize(0), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT 3, 2, materialize(0), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 715 out of 1000 SELECT 3, 2, materialize(0), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 716 out of 1000 SELECT 3, 2, 0, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 717 out of 1000 SELECT 3, 2, 0, avg(power(toLowCardinality(3), toNullable(3), 2), log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, 0, avg(power(toLowCardinality(3), toNullable(3), 2), log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, 2, 0, avg(power(toLowCardinality(3), toNullable(3), 2), log(2) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 718 out of 1000 SELECT 3, 2, 0, avg(log(materialize(toLowCardinality(2))) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT 3, 2, 0, avg(log(materialize(toLowCardinality(toUInt256(2)))) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT 3, 2, 0, avg(log(materialize(toLowCardinality(toUInt256(2)))) * number) AS k FROM numbers(10000000) GROUP BY toUInt128(2) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Got boring AST Fuzzing step 721 out of 1000 SELECT 3, 2, 0, avg(materialize(toNullable(56)) * log(materialize(toLowCardinality(toUInt256(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 722 out of 1000 SELECT 3, 2, 0, avg(materialize(56) * log(materialize(toLowCardinality(toUInt256(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, toUInt256(0), avg(56 * log(materialize(toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, toUInt256(0), avg(56 * log(materialize(toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 725 out of 1000 SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, 0, avg(56 * log(materialize(toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, 0, avg(56 * log(materialize(toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(log(materialize(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 727 out of 1000 SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, 0, avg(56 * log(materialize(toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, 0, avg(56 * log(materialize(toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 729 out of 1000 SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, 0, avg(56 * log(materialize(toUInt256(2)))) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2, max(log(toUInt256(2)) * number) IGNORE NULLS, 0, avg(56 * log(materialize(toUInt256(2)))) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 730 out of 1000 SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(toLowCardinality(57), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(toLowCardinality(57), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 732 out of 1000 SELECT 3, 2, max(clear_column__fuzz_2, log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(materialize(toUInt256(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, max(clear_column__fuzz_2, log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(materialize(toUInt256(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_2' in scope SELECT 3, 2, max(clear_column__fuzz_2, log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(materialize(toUInt256(2))))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 733 out of 1000 EXPLAIN AST graph = true SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN AST graph = true SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 734 out of 1000 SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(log(toNullable(toUInt128(2))), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, 2, max(log(2) * number) IGNORE NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(log(toNullable(toUInt128(2))), 10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 736 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 737 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(multiply(56, power(toLowCardinality(3), 2), log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, max(log(2) * number), 0, avg(multiply(56, power(toLowCardinality(3), 2), log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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 SELECT 3, 2, max(log(2) * number), 0, avg(multiply(56, power(toLowCardinality(3), 2), log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 738 out of 1000 SELECT 3, 2, max(log(2) * number) RESPECT NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, max(log(2) * number) RESPECT NULLS, 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 739 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(multiply(56, toUInt128(power(toLowCardinality(3), 3, 2), 3), log(clear_column__fuzz_17, toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, max(log(2) * number), 0, avg(multiply(56, toUInt128(power(toLowCardinality(3), 3, 2), 3), log(clear_column__fuzz_17, toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT 3, 2, max(log(2) * number), 0, avg(multiply(56, toUInt128(power(toLowCardinality(3), 3, 2), 3), log(clear_column__fuzz_17, toUInt256(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 740 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 741 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 742 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 744 out of 1000 SELECT 3, toLowCardinality(2), max(log(2) * number), 0, avg(56 * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT 3, toLowCardinality(2), max(log(2) * number), 0, avg(toLowCardinality(toUInt256(56)) * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, toLowCardinality(2), max(log(2) * number), 0, avg(toLowCardinality(toUInt256(56)) * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Illegal types UInt256 and Float64 of arguments of function multiply: In scope SELECT 3, toLowCardinality(2), max(log(2) * number), 0, avg(toLowCardinality(toUInt256(56)) * log(toUInt256(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&&, String&&) @ 0x000000000771c8ac 4. DB::FunctionBinaryArithmetic::getReturnTypeImplStatic(std::vector, std::allocator>> const&, std::shared_ptr) @ 0x000000000cf5eb8b 5. DB::BinaryArithmeticOverloadResolver::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000cd1a3fc 6. DB::IFunctionOverloadResolver::getReturnTypeImpl(std::vector> const&) const @ 0x000000000821a661 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 746 out of 1000 SELECT 3, toLowCardinality(2), max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 747 out of 1000 SELECT 3, toLowCardinality(2), max(log(2) * number), 0, avg(materialize(56) * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY pow(3, toNullable(2)) ASC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(materialize(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 749 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(materialize(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 750 out of 1000 SELECT 3, 2, max(multiply(log(2))), materialize(0), avg(56 * log(materialize(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, 2, max(multiply(log(2))), materialize(0), avg(56 * log(materialize(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, 2, max(multiply(log(2))), materialize(0), avg(56 * log(materialize(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 751 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 753 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 754 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 755 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 756 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(multiply(56, materialize(toLowCardinality(toLowCardinality(toUInt128(3)))), log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(multiply(56, materialize(toLowCardinality(toLowCardinality(toUInt128(3)))), log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) 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 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(multiply(56, materialize(toLowCardinality(toLowCardinality(toUInt128(3)))), log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 757 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 758 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toLowCardinality(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY toLowCardinality(toNullable(2)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 759 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Got boring AST Fuzzing step 761 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT 3, 2, max(multiply(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(POW(3, materialize(materialize(toNullable(2)))), time, 2))) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)), log(2), number)), toUInt128(0), avg(56 * log(toUInt256(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, max(multiply(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(POW(3, materialize(materialize(toNullable(2)))), time, 2))) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)), log(2), number)), toUInt128(0), avg(56 * log(toUInt256(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 2, max(multiply(if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(POW(3, materialize(materialize(toNullable(2)))), time, 2))) = 0, 'ok', toString(2, 57, POWER(2, materialize(3)), time)), log(2), number)), toUInt128(0), avg(56 * log(toUInt256(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 764 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % materialize(2) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(materialize(5), 56 * log(2)) AS k FROM numbers(10000000) PREWHERE toUInt128(2) % materialize(2) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, max(log(2) * number), toUInt128(0), avg(materialize(5), 56 * log(2)) AS k FROM numbers(10000000) PREWHERE toUInt128(2) % materialize(2) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 766 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 767 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 768 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % toUInt128(2) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % toUInt128(2) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 769 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 771 out of 1000 EXPLAIN PIPELINE header = true SELECT 3, 2, max(log(toLowCardinality(2)) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT 3, 2, max(log(toLowCardinality(2)) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 772 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 773 out of 1000 SELECT 3, 2, max(multiply(number)), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, max(multiply(number)), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) 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 SELECT 3, 2, max(multiply(number)), 0, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 774 out of 1000 SELECT 3, 2, max(log(2) * number), toNullable(0), avg(materialize(56) * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(materialize(56) * log(2)) AS k FROM numbers(10000000) WHERE materialize(toUInt128(2)) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 777 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 779 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 781 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 782 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 783 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 784 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 786 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 787 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 788 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 789 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 790 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 791 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 792 out of 1000 EXPLAIN SYNTAX SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 793 out of 1000 EXPLAIN QUERY TREE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 EXPLAIN AST SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 41 ('3'): 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 796 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 EXPLAIN PIPELINE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 798 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 799 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 800 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 801 out of 1000 EXPLAIN ESTIMATE SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Got boring AST Fuzzing step 802 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 SELECT toUInt256(3), round(avg(toNullable(toNullable(0)), log(materialize(2)) * number) IGNORE NULLS, toLowCardinality(6)), 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT toUInt256(3), round(avg(toNullable(toNullable(0)), log(materialize(2)) * number) IGNORE NULLS, toLowCardinality(6)), 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE toUInt128(2) % 2 WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 804 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE modulo(POW(toLowCardinality(3), 2), toUInt128(2), toNullable(toUInt128(2))) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE modulo(POW(toLowCardinality(3), 2), toUInt128(2), toNullable(toUInt128(2))) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE modulo(POW(toLowCardinality(3), 2), toUInt128(2), toNullable(toUInt128(2))) WITH TOTALS ORDER BY max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 805 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(56 * log(2)) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 SELECT 3, 2, max(log(2) * number), 0, avg(materialize(toNullable(56)) * log(2)) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT 3, 2, max(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(log(pow(toLowCardinality(3), 2), materialize(2)) * number, 2, 3), time)), log(2) * number), 0, avg(materialize(toNullable(56)) * log(2)) AS k FROM numbers(10000000) PREWHERE toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2))) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT 3, 2, max(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(log(pow(toLowCardinality(3), 2), materialize(2)) * number, 2, 3), time)), log(2) * number), 0, avg(materialize(toNullable(56)) * log(2)) AS k FROM numbers(10000000) PREWHERE toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2))) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 2, max(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(POWER(log(pow(toLowCardinality(3), 2), materialize(2)) * number, 2, 3), time)), log(2) * number), 0, avg(materialize(toNullable(56)) * log(2)) AS k FROM numbers(10000000) PREWHERE toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2))) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 809 out of 1000 SELECT 3, materialize(2), max(log(2) * number), 0, avg(toNullable(56) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(56) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(56) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 812 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 813 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 814 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 815 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % toLowCardinality(toUInt128(2)) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(2))) AS k FROM numbers(10000000) WHERE 2 % toLowCardinality(toUInt128(2)) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 817 out of 1000 SELECT 3, materialize(2), max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(toLowCardinality(2)))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 818 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(toNullable(56)) * log(toUInt128(toLowCardinality(2)))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 819 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 820 out of 1000 EXPLAIN `header, description` = true, indexes = true SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'EXPLAIN `header, description` = true, indexes = true SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 821 out of 1000 SELECT 3, 2, max(log(2) * number), avg(multiply(toNullable(56))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, max(log(2) * number), avg(multiply(toNullable(56))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) 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 SELECT 3, 2, max(log(2) * number), avg(multiply(toNullable(56))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 822 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 823 out of 1000 SELECT 3, 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) RESPECT NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT 3, 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) RESPECT NULLS AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC, toLowCardinality(toNullable(2)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 824 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 825 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 826 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 827 out of 1000 SELECT 3, 2, max(log(toNullable(2)) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) PREWHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT 3, 2, max(log(toNullable(2)) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) PREWHERE 2 % 2 WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 828 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 SELECT 3, 2, max(log(2) * number), avg(toNullable(56) * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 830 out of 1000 SELECT 3, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)), 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, dateDiff('second', toDateTime(time.1), toDateTime(time.2)), 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 831 out of 1000 SELECT 3, 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT 3, 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Got boring AST Fuzzing step 833 out of 1000 SELECT 3, 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 SELECT 3, 2, max(multiply(log(2))), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST Error on processing query 'SELECT 3, 2, max(multiply(log(2))), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT 3, 2, max(multiply(log(2))), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3) ASC, toLowCardinality(toNullable(2)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 835 out of 1000 SELECT toLowCardinality(toNullable(3)), 2, max(log(2) * number), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 SELECT toLowCardinality(3), 2, max(multiply(max(log(pow(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS, log(2), number)), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT toLowCardinality(3), 2, max(multiply(max(log(pow(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS, log(2), number)), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(3), 2, max(multiply(max(log(pow(toLowCardinality(3), 2), materialize(2)) * number) IGNORE NULLS, log(2), number)), avg(56 * log(toLowCardinality(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 837 out of 1000 SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(log(2) * number), avg(56 * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 838 out of 1000 SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(log(2) * number), avg(56 * log(2)) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(log(2) * number), avg(56 * log(2)) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 839 out of 1000 SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(log(2) * number), avg(56 * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 840 out of 1000 SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(multiply(log(2), POWER(POW(toNullable(3), toLowCardinality(2)), 3), number)), avg(56 * log(2)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(multiply(log(2), POWER(POW(toNullable(3), toLowCardinality(2)), 3), number)), avg(56 * log(2)) AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toFixedString(toUInt128(3), '01473_metric_log_table_event_start_time_microseconds_test', 57) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 841 out of 1000 SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(log(2) * number), avg(56 * log(materialize(toNullable(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 842 out of 1000 SELECT toLowCardinality(toNullable(3)), toLowCardinality(2), max(log(2) * number), avg(56 * log(materialize(toNullable(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 SELECT toNullable(3), 2, max(log(2) * number), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 845 out of 1000 SELECT toNullable(3), 2, max(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS, log(2) * number), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT toNullable(3), 2, max(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS, log(2) * number), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 846 out of 1000 SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 847 out of 1000 SELECT toNullable(3), toLowCardinality(2), POWER(materialize(2), 3), max(multiply(log(2))), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST Error on processing query 'SELECT toNullable(3), toLowCardinality(2), POWER(materialize(2), 3), max(multiply(log(2))), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) 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 SELECT toNullable(3), toLowCardinality(2), POWER(materialize(2), 3), max(multiply(log(2))), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 848 out of 1000 SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(56 * log(materialize(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 849 out of 1000 SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(56 * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 850 out of 1000 SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(56 * log(2)) AS k FROM numbers(toLowCardinality(toNullable(toUInt256(10000000)))) GROUP BY toNullable(toUInt128(toUInt128(57))) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(56 * log(2)) AS k FROM numbers(toLowCardinality(toNullable(toUInt256(10000000)))) GROUP BY toNullable(toUInt128(toUInt128(57))) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt256)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 851 out of 1000 SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(multiply(56, 2, log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(multiply(56, 2, log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT toNullable(3), materialize(toLowCardinality(2)), max(log(2) * number), avg(multiply(56, 2, log(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 852 out of 1000 SELECT toNullable(3), materialize(toLowCardinality(2)), max(multiply(number)), avg(56 * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT toNullable(3), materialize(toLowCardinality(2)), max(multiply(number)), avg(56 * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) 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 SELECT toNullable(3), materialize(toLowCardinality(2)), max(multiply(number)), avg(56 * log(2)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 853 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(56 * log(materialize(toNullable(2)))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(56 * log(toNullable(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 855 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(56 * log(toNullable(2))) AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 856 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(multiply(log(2), log(2), number)), avg(56 * log(toNullable(2))) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), toString(POW(2), time)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST Error on processing query 'SELECT toNullable(3), toLowCardinality(2), max(multiply(log(2), log(2), number)), avg(56 * log(toNullable(2))) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), toString(POW(2), time)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) 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 SELECT toNullable(3), toLowCardinality(2), max(multiply(log(2), log(2), number)), avg(56 * log(toNullable(2))) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(0), toString(POW(2), time)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 857 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number) RESPECT NULLS, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT toNullable(3), toLowCardinality(2), max(log(2) * number) RESPECT NULLS, avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 859 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(multiply(log(2), POWER(materialize(toLowCardinality(2)), materialize(toNullable(3))), number)), avg(56 * log(toUInt256(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC Error on processing query 'SELECT toNullable(3), toLowCardinality(2), max(multiply(log(2), POWER(materialize(toLowCardinality(2)), materialize(toNullable(3))), number)), avg(56 * log(toUInt256(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT toNullable(3), toLowCardinality(2), max(multiply(log(2), POWER(materialize(toLowCardinality(2)), materialize(toNullable(3))), number)), avg(56 * log(toUInt256(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 860 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 861 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(56 * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(materialize(toNullable(56)) * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 863 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(materialize(toNullable(56)) * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 864 out of 1000 SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(materialize(toNullable(56)) * log(2)) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC NULLS FIRST Error on processing query 'SELECT toNullable(3), toLowCardinality(2), max(log(2) * number), avg(materialize(toNullable(56)) * log(2)) IGNORE NULLS AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 865 out of 1000 SELECT toNullable(3), 2, avg(toNullable(56) * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 SELECT toNullable(3), 2, avg(toNullable(56) * log(2)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Got boring AST Fuzzing step 867 out of 1000 SELECT toNullable(3), 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 868 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 870 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 871 out of 1000 SELECT 3, 2 FROM numbers(10000000) WHERE numbers(1048576, 10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Error on processing query 'SELECT 3, 2 FROM numbers(10000000) WHERE numbers(1048576, 10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT 3, 2 FROM numbers(10000000) WHERE numbers(1048576, 10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 872 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 874 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 875 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC, toLowCardinality(toNullable(2)) DESC Got boring AST Fuzzing step 877 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 878 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT 3, 2 FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT 3, 2 FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 879 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Got boring AST Fuzzing step 880 out of 1000 SELECT 3, toLowCardinality(toUInt128(2)) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 SELECT 3 FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Error on processing query 'SELECT 3 FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 EXPLAIN AST SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 EXPLAIN PIPELINE SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 EXPLAIN PIPELINE SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 887 out of 1000 EXPLAIN PIPELINE SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 888 out of 1000 EXPLAIN SYNTAX SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 889 out of 1000 EXPLAIN SYNTAX SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 890 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 891 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 892 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 893 out of 1000 EXPLAIN QUERY TREE SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 894 out of 1000 EXPLAIN AST SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 EXPLAIN AST SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 896 out of 1000 EXPLAIN SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 899 out of 1000 SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Got boring AST Fuzzing step 900 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 907 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 908 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 909 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT 3, toNullable(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT 3, toNullable(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 910 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Got boring AST Fuzzing step 911 out of 1000 SELECT 3, 2 FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Error on processing query 'SELECT 3, 2 FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 912 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Got boring AST Fuzzing step 916 out of 1000 SELECT 3, 2 FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Error on processing query 'SELECT 3, 2 FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 917 out of 1000 SELECT 3, 2 FROM numbers(10000000) GROUP BY max(log(avg(log(toLowCardinality(2)) * number), 2) * number), POWER(3, toNullable(2)), toNullable('ok') WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Error on processing query 'SELECT 3, 2 FROM numbers(10000000) GROUP BY max(log(avg(log(toLowCardinality(2)) * number), 2) * number), POWER(3, toNullable(2)), toNullable('ok') WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT 3, 2 FROM numbers(10000000) GROUP BY max(log(avg(log(toLowCardinality(2)) * number), 2) * number), POWER(3, toNullable(2)), toNullable('ok') WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 918 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Got boring AST Fuzzing step 919 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 921 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 922 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 923 out of 1000 SELECT 3, 2 FROM numbers(10000000) GROUP BY log(materialize(toLowCardinality(toUInt256(2)))), toLowCardinality(toLowCardinality('ok')), round(6), POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(time.2)) = 0, 2)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Error on processing query 'SELECT 3, 2 FROM numbers(10000000) GROUP BY log(materialize(toLowCardinality(toUInt256(2)))), toLowCardinality(toLowCardinality('ok')), round(6), POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(time.2)) = 0, 2)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 2 FROM numbers(10000000) GROUP BY log(materialize(toLowCardinality(toUInt256(2)))), toLowCardinality(toLowCardinality('ok')), round(6), POW(toLowCardinality(3), toLowCardinality(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(1)))), toDateTime(time.2)) = 0, 2)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 924 out of 1000 SELECT 3, 2 FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Error on processing query 'SELECT 3, 2 FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 925 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 926 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 927 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Got boring AST Fuzzing step 928 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 931 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 932 out of 1000 SELECT 3, 2 FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Error on processing query 'SELECT 3, 2 FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 933 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 934 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 935 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 936 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 937 out of 1000 EXPLAIN AST optimize = true SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Error on processing query 'EXPLAIN AST optimize = true SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 938 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 939 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 940 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 941 out of 1000 SELECT 3, toUInt128(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 944 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 946 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 EXPLAIN PIPELINE SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 EXPLAIN AST SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 EXPLAIN AST SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 950 out of 1000 EXPLAIN SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 EXPLAIN AST SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 952 out of 1000 EXPLAIN QUERY TREE SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 EXPLAIN PIPELINE SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 EXPLAIN PIPELINE SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 955 out of 1000 EXPLAIN PIPELINE SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 956 out of 1000 EXPLAIN PIPELINE SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 957 out of 1000 EXPLAIN SYNTAX SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 959 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Got boring AST Fuzzing step 960 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT 3, materialize(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Got boring AST Fuzzing step 962 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 963 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 964 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Got boring AST Fuzzing step 966 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Got boring AST Fuzzing step 968 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Got boring AST Fuzzing step 969 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 972 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 973 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC NULLS LAST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Got boring AST Fuzzing step 976 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Got boring AST Fuzzing step 977 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Got boring AST Fuzzing step 978 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 979 out of 1000 SELECT 3, 2 FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST Error on processing query 'SELECT 3, 2 FROM numbers(toLowCardinality(toNullable(10000000))) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(Nullable(UInt32)) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 980 out of 1000 SELECT 3, 2 FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Error on processing query 'SELECT 3, 2 FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 981 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST Got boring AST Fuzzing step 982 out of 1000 SELECT 3, toUInt256(2) FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 983 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) ASC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 985 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Got boring AST Fuzzing step 986 out of 1000 SELECT 3, 2 FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST Error on processing query 'SELECT 3, 2 FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 3, 2 FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', toNullable(toUInt128(2))), toString(time)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 987 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 988 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC NULLS FIRST, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 989 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS LAST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 990 out of 1000 SELECT 3, 2 FROM numbers(10000000) PREWHERE log(toLowCardinality(2)) * number WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Error on processing query 'SELECT 3, 2 FROM numbers(10000000) PREWHERE log(toLowCardinality(2)) * number WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f769 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:90: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001757f398 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:593: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757ce11 8. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 991 out of 1000 SELECT 3, 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 992 out of 1000 SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC NULLS FIRST, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 993 out of 1000 SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT 2 FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC Error on processing query 'SELECT 2 FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS ASC': 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 995 out of 1000 SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Query succeeded, using this AST as a start Fuzzing step 996 out of 1000 SELECT 2 FROM numbers(10000000) GROUP BY round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(toString(57, POWER(2), time), POWER(POW(2)), time)), POWER(POW(materialize(3), 2), materialize(toUInt256(2))) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC Error on processing query 'SELECT 2 FROM numbers(10000000) GROUP BY round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6), if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = toNullable(0), 'ok', toString(toString(57, POWER(2), time), POWER(POW(2)), time)), POWER(POW(materialize(3), 2), materialize(toUInt256(2))) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2 FROM numbers(10000000) GROUP BY round(avg(log(toUInt256(2)) * number) IGNORE NULLS, 6), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(toString(57, POWER(2), time), POWER(POW(2)), time)), POWER(POW(materialize(3), 2), materialize(toUInt256(2))) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 997 out of 1000 SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) DESC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST Got boring AST Fuzzing step 999 out of 1000 SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56) ASC, avg(56 * log(toUInt256(2))) DESC, max(log(toLowCardinality(2)) * number) IGNORE NULLS DESC NULLS LAST 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 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 EXPLAIN json = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN json = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 4 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 5 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 6 out of 1000 EXPLAIN AST graph = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN AST graph = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 7 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 8 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 9 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 10 out of 1000 EXPLAIN AST graph = true, optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN AST graph = true, optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 11 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 12 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 13 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 14 out of 1000 EXPLAIN optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 15 out of 1000 EXPLAIN AST graph = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN AST graph = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 16 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 18 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 19 out of 1000 EXPLAIN QUERY TREE dump_ast = true, passes = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE dump_ast = true, passes = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 20 out of 1000 EXPLAIN `header, description` = true, actions = true, indexes = true, json = true, sorting = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN `header, description` = true, actions = true, indexes = true, json = true, sorting = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 21 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 22 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 23 out of 1000 EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 24 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 25 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 26 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 27 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 28 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 29 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 30 out of 1000 EXPLAIN QUERY TREE run_passes = true, dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % toLowCardinality(2)) * (number % 3), number % 3 ORDER BY k ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE run_passes = true, dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % toLowCardinality(2)) * (number % 3), number % 3 ORDER BY k ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 31 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 33 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 34 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE toString(toUInt128(57), time) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE toString(toUInt128(57), time) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE toString(toUInt128(57), time) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 35 out of 1000 SELECT avg(log(avg(toNullable(toNullable(56)) * log(toUInt128(2))), 2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(log(avg(toNullable(toNullable(56)) * log(toUInt128(2))), 2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(avg(toNullable(toNullable(56)) * log(toUInt128(2))), 2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 36 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 ORDER BY k ASC Got boring AST Fuzzing step 37 out of 1000 SELECT avg(log(toUInt256(2)) * number) AS k FROM numbers(10000000) GROUP BY modulo(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2))) = 0, number, 2) * (number % 3), number % toUInt256(3) ORDER BY k ASC Error on processing query 'SELECT avg(log(toUInt256(2)) * number) AS k FROM numbers(10000000) GROUP BY modulo(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2))) = 0, number, 2) * (number % 3), number % toUInt256(3) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(toUInt256(2)) * number) AS k FROM numbers(10000000) GROUP BY modulo(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize('01473_metric_log_table_event_start_time_microseconds_test'), 2))) = 0, number, 2) * (number % 3), number % toUInt256(3) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 38 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH CUBE ORDER BY toLowCardinality(2) % materialize(toNullable(2)) ASC, k ASC Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH CUBE ORDER BY toLowCardinality(2) % materialize(toNullable(2)) ASC, k ASC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 39 out of 1000 SELECT avg(log(toLowCardinality(toNullable(toUInt256(2)))) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 40 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 41 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k ASC Got boring AST Fuzzing step 42 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 43 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 EXPLAIN SYNTAX SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 46 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 47 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 48 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 49 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 50 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 51 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 52 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAS. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 53 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 54 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 55 out of 1000 EXPLAIN SYNTAX SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN SYNTAX SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 57 out of 1000 EXPLAIN SYNTAX SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 58 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 60 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 61 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 63 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 64 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 66 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 68 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 69 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 70 out of 1000 EXPLAIN SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 71 out of 1000 EXPLAIN SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 72 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 73 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 74 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 75 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 76 out of 1000 EXPLAIN SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 77 out of 1000 EXPLAIN SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 78 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 80 out of 1000 EXPLAIN AST SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 81 out of 1000 EXPLAIN PIPELINE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 EXPLAIN PIPELINE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 83 out of 1000 EXPLAIN PIPELINE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 84 out of 1000 EXPLAIN PIPELINE SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 85 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAS. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 86 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 87 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY modulo(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, number, 2) * (number % toLowCardinality(3)), number % 3 WITH ROLLUP ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY modulo(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, number, 2) * (number % toLowCardinality(3)), number % 3 WITH ROLLUP ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 89 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % toNullable(2)) * (number % toLowCardinality(3)), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % toNullable(2)) * (number % toLowCardinality(3)), number % 3 WITH ROLLUP ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 90 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH ROLLUP ORDER BY materialize(toUInt128(0)) ASC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 92 out of 1000 EXPLAIN PIPELINE compact = true SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY modulo(max(log(2) * number) IGNORE NULLS, number, 2) * (number % 3), number % 3 WITH ROLLUP ORDER BY materialize(toUInt128(0)) DESC, k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY modulo(max(log(2) * number) IGNORE NULLS, number, 2) * (number % 3), number % 3 WITH ROLLUP ORDER BY materialize(toUInt128(0)) DESC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 93 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH ROLLUP ORDER BY materialize(toUInt128(0)) ASC, k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3 WITH ROLLUP ORDER BY materialize(toUInt128(0)) ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 94 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toUInt256(3)), number % 3 WITH ROLLUP ORDER BY materialize(toUInt128(0)) ASC NULLS LAST, k DESC Error on processing query 'SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toUInt256(3)), number % 3 WITH ROLLUP ORDER BY materialize(toUInt128(0)) ASC NULLS LAST, k DESC': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.010934681 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 95 out of 1000 SELECT avg(log(toNullable(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 96 out of 1000 SELECT avg(log(toNullable(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN PIPELINE compact = true SELECT avg(log(toNullable(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT avg(log(toNullable(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 98 out of 1000 SELECT avg(log(toNullable(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k ASC NULLS FIRST Got boring AST Fuzzing step 99 out of 1000 SELECT avg(log(toNullable(toLowCardinality(2))) * number) AS k FROM numbers(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(2, 57, POWER(toNullable(56) * log(toUInt128(2)), POW(3, toUInt256(2))), time)), 10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(toNullable(toLowCardinality(2))) * number) AS k FROM numbers(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(2, 57, POWER(toNullable(56) * log(toUInt128(2)), POW(3, toUInt256(2))), time)), 10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(2, 57, pow(toNullable(56) * log(toUInt128(2)), pow(3, toUInt256(2))), time))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 100 out of 1000 SELECT avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST, k ASC Query succeeded, using this AST as a start Fuzzing step 101 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 103 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 104 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(materialize(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k ASC NULLS FIRST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(materialize(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k 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(_CAST('10000000', 'UInt256')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 105 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 106 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC, k ASC NULLS FIRST Got boring AST Fuzzing step 107 out of 1000 SELECT round(max(log(2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Query succeeded, using this AST as a start Fuzzing step 108 out of 1000 SELECT round(max(log(clear_column__fuzz_4, 2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(clear_column__fuzz_4, 2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_4' in scope SELECT round(max(log(clear_column__fuzz_4, 2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 109 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 110 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 111 out of 1000 SELECT round(max(POWER(POW(toNullable(3), materialize(toNullable(materialize(2)))), POW(POW(toLowCardinality(3), 2), 2), 3), log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(POWER(POW(toNullable(3), materialize(toNullable(materialize(2)))), POW(POW(toLowCardinality(3), 2), 2), 3), log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT round(max(POWER(POW(toNullable(3), materialize(toNullable(materialize(2)))), POW(POW(toLowCardinality(3), 2), 2), 3), log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 112 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 113 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 114 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 116 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 118 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 119 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 120 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 121 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 122 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 123 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 125 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 126 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 127 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 129 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 130 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 132 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 133 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 134 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 135 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 136 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 137 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 138 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 139 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 140 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 143 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 144 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 145 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 146 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 149 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 151 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 154 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 155 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 156 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 157 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 159 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 161 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 162 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 163 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 165 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 166 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 168 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 173 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 174 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 175 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 177 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 178 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 179 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 180 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 181 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 182 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 184 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 185 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 186 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 187 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 189 out of 1000 EXPLAIN QUERY TREE run_passes = true, dump_ast = true SELECT round(max(log(2) * number)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'EXPLAIN QUERY TREE run_passes = true, dump_ast = true SELECT round(max(log(2) * number)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 190 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 191 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Got boring AST Fuzzing step 192 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Got boring AST Fuzzing step 193 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Got boring AST Fuzzing step 194 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)), avg(if(dateDiff('second', toDateTime(tupleElement(time)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toNullable(toUInt256(2)))), time)), log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 31. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf Fuzzing step 195 out of 1000 SELECT round(max(log(2) * number)), avg(log(toNullable(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(toNullable(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 196 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 197 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Got boring AST Fuzzing step 198 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Got boring AST Fuzzing step 199 out of 1000 SELECT round(max(multiply(number))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(multiply(number))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT round(max(multiply(number))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 200 out of 1000 SELECT round(max(log(toNullable(2)) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 201 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 202 out of 1000 SELECT round(max(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(POWER(3, 2), toUInt128(0)), log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(tupleElement(time, 2))) = materialize(POWER(3, 2), toUInt128(0)), log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = materialize(POWER(3, 2), toUInt128(0)), log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 203 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT round(max(log(2) * number)), avg(log(materialize(toUInt256(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Query succeeded, using this AST as a start Fuzzing step 205 out of 1000 SELECT round(max(log(2) * number)), avg(log(materialize(toUInt256(toLowCardinality(2)))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT round(max(log(2) * number)), avg(log(toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 207 out of 1000 SELECT round(max(log(2) * number)), avg(log(toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT round(max(log(2) * number)), avg(log(toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 209 out of 1000 SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)), number))), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST Error on processing query 'SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)), number))), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(multiply(log(2), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toString(time)), number))), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 210 out of 1000 SELECT round(max(log(2) * number)), avg(log(toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 211 out of 1000 SELECT round(max(log(toNullable(toNullable(0)), 2) * number)), avg(log(max(log(2) * number) IGNORE NULLS, toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(log(toNullable(toNullable(0)), 2) * number)), avg(log(max(log(2) * number) IGNORE NULLS, toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(max(log(toNullable(toNullable(0)), 2) * number)), avg(log(max(log(2) * number) IGNORE NULLS, toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 212 out of 1000 SELECT round(max(log(2) * number)), avg(log(toUInt256(toLowCardinality(2))) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Got boring AST Fuzzing step 213 out of 1000 SELECT round(max(log(2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 SELECT round(max(log(2) * number)), avg(log(toLowCardinality(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(toLowCardinality(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 215 out of 1000 SELECT round(max(log(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'SELECT round(max(log(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(max(log(toFixedString('01473_query_log_table_event_start_time_microseconds_test', 56), 2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 216 out of 1000 SELECT round(max(log(2) * number)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Query succeeded, using this AST as a start Fuzzing step 217 out of 1000 SELECT round(max(log(2) * number)), avg(log(toLowCardinality(round(max(log(log(toLowCardinality(toUInt128(2))) * number, toUInt256(2)) * number)), 2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(toLowCardinality(round(max(log(log(toLowCardinality(toUInt128(2))) * number, toUInt256(2)) * number)), 2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT round(max(log(2) * number)), avg(log(toLowCardinality(round(max(log(log(toLowCardinality(toUInt128(2))) * number, toUInt256(2)) * number)), 2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b Fuzzing step 218 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE POWER(POW(3, toNullable(2))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE POWER(POW(3, toNullable(2))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE POWER(POW(3, toNullable(2))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 220 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Got boring AST Fuzzing step 221 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Got boring AST Fuzzing step 222 out of 1000 SELECT round(max(multiply(log(POWER(3, 2), avg(log(2) * number) RESPECT NULLS, 2) * number, log(2), number))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(multiply(log(POWER(3, 2), avg(log(2) * number) RESPECT NULLS, 2) * number, log(2), number))), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 29. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 31. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 Fuzzing step 223 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Got boring AST Fuzzing step 224 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Got boring AST Fuzzing step 225 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 227 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 228 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 229 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 230 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 231 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 232 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 233 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 234 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 235 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 236 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 237 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 238 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 239 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 240 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 241 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 242 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 243 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 244 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 245 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 246 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 247 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 248 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 249 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 250 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 251 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 252 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 253 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 254 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 255 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 256 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 257 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 258 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 259 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 260 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 261 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 262 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 263 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 264 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 265 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 266 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 267 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 268 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 269 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 270 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 271 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 272 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 273 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 274 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 275 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 276 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 277 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 278 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 279 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 280 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 281 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 282 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 283 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 284 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 285 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 286 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 287 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 288 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 289 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 290 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 291 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 292 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 293 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 294 out of 1000 SELECT round(max(log(2) * number)), avg(multiply(log(1048577, 2))) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), avg(multiply(log(1048577, 2))) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 295 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 296 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 297 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 298 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 299 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 300 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 301 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 302 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 303 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 304 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 306 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 307 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 308 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 309 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 310 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 311 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 312 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 313 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 314 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 315 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 316 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 317 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 318 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 319 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 320 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 321 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 322 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 323 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 324 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 325 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 326 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 327 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 328 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 329 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 330 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 331 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 332 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 333 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 334 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 335 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 336 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 337 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 338 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 339 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 340 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 341 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 342 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 343 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 344 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 345 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 346 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 347 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 348 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 349 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 350 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 351 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 352 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 353 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 354 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 355 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 356 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 357 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 358 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 359 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 360 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 361 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 362 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 363 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 364 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 365 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 366 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 367 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 368 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 369 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 370 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 371 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 372 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 373 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 374 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 375 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 376 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 377 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 378 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 379 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 380 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 381 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 382 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 383 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 384 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 385 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 386 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 387 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 388 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 389 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 390 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 391 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 392 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 393 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 394 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 395 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 396 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 397 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 398 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 399 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 400 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 401 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 402 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 403 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 404 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 405 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 406 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 407 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 408 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 409 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 410 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 411 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 412 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 413 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 414 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 415 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 416 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 417 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 418 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 419 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 420 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 421 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 422 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 424 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 425 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 426 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 427 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 428 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 429 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 430 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 431 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 432 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 433 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 434 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 435 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 436 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 437 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 438 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 439 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 440 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 441 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 442 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 443 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 444 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 445 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 446 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 447 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 448 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 449 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 450 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 451 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 452 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 453 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 454 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 455 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 456 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 457 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 458 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 459 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 460 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 461 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 462 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 463 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 464 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 465 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 466 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 467 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 468 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 469 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 470 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 471 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 472 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 473 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 474 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 475 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 476 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 477 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 478 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 479 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 480 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 481 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 482 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 483 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 484 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 485 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 486 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 487 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 488 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 489 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 490 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 491 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 492 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 493 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 494 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 495 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 496 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 497 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 498 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 499 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 500 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 501 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 502 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 503 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 504 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 505 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 506 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 507 out of 1000 SELECT materialize(toUInt128(0)), round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT materialize(toUInt128(0)), round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 508 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 509 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 510 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 511 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 512 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 513 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 514 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 515 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 516 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 517 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 518 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 519 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 520 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 521 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 522 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 523 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 524 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 525 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 526 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 527 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 528 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 529 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 530 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 531 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 532 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 533 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 534 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 535 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 536 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 537 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 538 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 540 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 541 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 542 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 543 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 544 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 545 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 546 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 547 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 548 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 549 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 550 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 551 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 552 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 553 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 554 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 555 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 556 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 557 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 558 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 559 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 560 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 561 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 562 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 563 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 564 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 565 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 566 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 567 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 568 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 569 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 570 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 571 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 572 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 573 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 574 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 575 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 576 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 577 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 578 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 579 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 580 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 581 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 582 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 583 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 584 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 585 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 586 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 587 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 588 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 589 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 590 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 591 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 592 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 593 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 594 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 595 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 596 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 597 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 598 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 599 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 600 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 601 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 602 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 603 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 604 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 605 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 606 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 607 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 608 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 609 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 610 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 611 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 612 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 613 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 614 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 615 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 616 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 617 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 618 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 619 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 620 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 621 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 622 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 623 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 624 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 625 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 626 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 627 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 628 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 629 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 630 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 631 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 632 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 633 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 634 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 635 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 636 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 637 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 638 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 639 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 640 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 641 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 642 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 643 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 644 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 645 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 646 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 647 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 648 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 649 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 650 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 651 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 652 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 653 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 654 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 655 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 656 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 657 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 659 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 660 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 661 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 662 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 663 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 664 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 665 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 666 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 667 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 668 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 669 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 670 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 671 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 672 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 673 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 674 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 676 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 677 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 678 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 679 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 680 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 681 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 682 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 683 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 684 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 685 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 686 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 687 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 688 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 689 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 691 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 692 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 693 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 694 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 695 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 696 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 697 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 698 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 699 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 700 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 701 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 702 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 703 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 704 out of 1000 SELECT round(max(multiply(log(2)))), avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(multiply(log(2)))), avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 706 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 707 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 708 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 709 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 710 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 711 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 712 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 713 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 715 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 717 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 718 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 719 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 720 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 721 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 722 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 723 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 724 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 725 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 726 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 727 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 728 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 729 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 730 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 731 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 732 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 733 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 734 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 735 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 736 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 737 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 738 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 739 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 740 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 741 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 742 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 743 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 744 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 745 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 746 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 747 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 748 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 749 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 750 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 751 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 752 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 753 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 754 out of 1000 SELECT round(max(log(2) * number)), avg(log(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(toFixedString('01473_trace_log_table_event_start_time_microseconds_test', 56), 2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 755 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 756 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 757 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 758 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 759 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 760 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 761 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 762 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 763 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 764 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 765 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 766 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 768 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 769 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 770 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 771 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 772 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 773 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 774 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 775 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 776 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 777 out of 1000 SELECT round(materialize(3), max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(numbers(pow(3, 2)), toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(materialize(3), max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(numbers(pow(3, 2)), toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT round(materialize(3), max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(numbers(pow(3, 2)), toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 778 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 779 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 780 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 781 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 782 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 783 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 784 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 785 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 786 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 787 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 788 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 789 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 790 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 791 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 792 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 793 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 794 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 795 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 796 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 797 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 798 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 799 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 800 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 801 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 802 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 803 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 804 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 805 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 806 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 807 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 808 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 809 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 810 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 811 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 812 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 813 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 814 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 815 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 816 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 817 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 818 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 819 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 820 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 821 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 822 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 823 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 824 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 825 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 826 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 827 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 828 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 829 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 830 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 831 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 832 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 833 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 834 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 835 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 836 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 837 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 838 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), 10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), 10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'toNullable(toUInt256(if(dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time))) = materialize(0), toFixedString('ok', toNullable(2)), toString(time)), 10000000))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 839 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 840 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 841 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 842 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 843 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 844 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 845 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 846 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 847 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 848 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 849 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 850 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 851 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 852 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 853 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 855 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 856 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 857 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 858 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 859 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 860 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 861 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 862 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 863 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 864 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 865 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 866 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 867 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 868 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 869 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 870 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 871 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 872 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 873 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 874 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 875 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 876 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 877 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 878 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 879 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 880 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 881 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 882 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 883 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 884 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 885 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 886 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 887 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 888 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 889 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 890 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 892 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 893 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 894 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 895 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 896 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 897 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 898 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 899 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 900 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 901 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 902 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 903 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 904 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 905 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 906 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 907 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 908 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 909 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 910 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 911 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 912 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 913 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 914 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 915 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 916 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 917 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 918 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 919 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 920 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 921 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 922 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 923 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 924 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 925 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 926 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 927 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 928 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 929 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 930 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 931 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 932 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 933 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 934 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 935 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 936 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 937 out of 1000 EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 938 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 939 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 940 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 941 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 942 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 943 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 944 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 945 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 946 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 947 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 948 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 949 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 950 out of 1000 SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY toString(toUInt128(57), time) ASC, materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY toString(toUInt128(57), time) ASC, materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 951 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 952 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 953 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 954 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 955 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 956 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 957 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 958 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 959 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 960 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 961 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 962 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 963 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 964 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 965 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 966 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 967 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('round'): round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LA. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 968 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 969 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 970 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 971 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 972 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 973 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 975 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 976 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 978 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 979 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 980 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 981 out of 1000 EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 982 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 983 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 984 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 985 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 986 out of 1000 EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN ESTIMATE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 988 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 989 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 990 out of 1000 EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 991 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 992 out of 1000 EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN QUERY TREE SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 993 out of 1000 EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'EXPLAIN SYNTAX SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt256) expression, must be numeric type: While processing SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:0: DB::Context::executeTableFunction(std::shared_ptr const&, DB::ASTSelectQuery const*) @ 0x00000000175f6392 8. ./build_docker/./src/Interpreters/JoinedTables.cpp:213: DB::JoinedTables::getLeftTableStorage() @ 0x0000000017eb6305 9. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:458: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, std::optional, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&, std::shared_ptr const&, std::shared_ptr) @ 0x0000000017da808a 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) @ 0x0000000017da634c 11. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 12. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 13. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 14. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 15. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 16. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 994 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 995 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 996 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 997 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 998 out of 1000 SELECT round(max(log(toNullable(toNullable(56)) * log(toUInt128(2)), 2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(toUInt128(10000000)))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Error on processing query 'SELECT round(max(log(toNullable(toNullable(56)) * log(toUInt128(2)), 2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(toUInt128(10000000)))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 999 out of 1000 EXPLAIN AST SELECT round(max(log(2) * number)), avg(log(2) * number) AS k FROM numbers(toNullable(toUInt256(10000000))) WITH TOTALS ORDER BY materialize(toUInt128(0)) ASC NULLS LAST Got boring AST Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 EXPLAIN optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 2 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 4 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 5 out of 1000 EXPLAIN indexes = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN indexes = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 6 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 7 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 8 out of 1000 EXPLAIN indexes = true, optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN indexes = true, optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 9 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 10 out of 1000 EXPLAIN AST optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN AST optimize = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 11 out of 1000 EXPLAIN PIPELINE compact = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 12 out of 1000 EXPLAIN `header, description` = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN `header, description` = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [5], String&&) @ 0x0000000017cd324c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb474 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 13 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 14 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 15 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 16 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 17 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 18 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 19 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 21 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 22 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 23 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 24 out of 1000 SELECT avg(multiply(power(3, 2), log(2), number)) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Error on processing query 'SELECT avg(multiply(power(3, 2), log(2), number)) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(multiply(power(3, 2), log(2), number)) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 25 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 26 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 27 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 28 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 29 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 30 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 31 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), modulo(pow(materialize(toNullable(3)), toNullable(materialize(toNullable(2)))), number, 3), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), modulo(pow(materialize(toNullable(3)), toNullable(materialize(toNullable(2)))), number, 3), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) * (number % 3), modulo(pow(materialize(toNullable(3)), toNullable(materialize(toNullable(2)))), number, 3), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 32 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 33 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toLowCardinality(3), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toLowCardinality(3), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toLowCardinality(3), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 34 out of 1000 SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 35 out of 1000 SELECT avg(multiply(log(toNullable(2)), log(toNullable(2)), number)) IGNORE NULLS, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC Error on processing query 'SELECT avg(multiply(log(toNullable(2)), log(toNullable(2)), number)) IGNORE NULLS, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(multiply(log(toNullable(2)), log(toNullable(2)), number)) IGNORE NULLS, avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 36 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT toNullable(toNullable(2)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % toLowCardinality(2) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toNullable(toNullable(2)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % toLowCardinality(2) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toNullable(toNullable(2)), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % toLowCardinality(2) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 38 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 39 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 40 out of 1000 SELECT avg(multiply(log(toLowCardinality(2)))) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, toNullable(toLowCardinality(3)), 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(multiply(log(toLowCardinality(2)))) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, toNullable(toLowCardinality(3)), 3), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(log(toLowCardinality(2)))) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, toNullable(toLowCardinality(3)), 3), number % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 41 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 42 out of 1000 SELECT avg(multiply(toNullable(toUInt256(3)), log(toLowCardinality(2)), number)) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), modulo(number, modulo(number), 3), number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(multiply(toNullable(toUInt256(3)), log(toLowCardinality(2)), number)) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), modulo(number, modulo(number), 3), number % 2 ORDER BY k 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 SELECT avg(multiply(toNullable(toUInt256(3)), log(toLowCardinality(2)), number)) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), modulo(number, modulo(number), 3), number % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 43 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 44 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 45 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE clear_column__fuzz_41 GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE clear_column__fuzz_41 GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_41' in scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE clear_column__fuzz_41 GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 46 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC': 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 47 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 48 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 49 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 50 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 51 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 52 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 53 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 54 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number), number % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 55 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, if(equals(toNullable(0)), materialize(toNullable('ok', 2)), toString(time)), toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, if(equals(toNullable(0)), materialize(toNullable('ok', 2)), toString(time)), toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function equals doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, if(equals(toNullable(0)), materialize(toNullable('ok', 2)), toString(time)), toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 23. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 27. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 29. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 31. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 Fuzzing step 56 out of 1000 SELECT avg(plus(numbers(10000000), number % 2, number % 3), log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(number % toLowCardinality(toNullable(3))), number % 3, number % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(plus(numbers(10000000), number % 2, number % 3), log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(number % toLowCardinality(toNullable(3))), number % 3, number % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function with name 'numbers' does not exist. In scope SELECT avg(plus(numbers(10000000), number % 2, number % 3), log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(number % toLowCardinality(toNullable(3))), number % 3, number % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&, String&&, String&&) @ 0x00000000101c6fac 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017509f53 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 57 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 58 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(toLowCardinality(materialize(toLowCardinality(3))), 10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(toLowCardinality(materialize(toLowCardinality(3))), 10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': 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(_CAST(3, 'LowCardinality(UInt8)'))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 60 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 62 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 63 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE pow(toNullable(3), toNullable(toNullable(2))) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE pow(toNullable(3), toNullable(toNullable(2))) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE pow(toNullable(3), toNullable(toNullable(2))) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 64 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 WITH CUBE ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 66 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE toLowCardinality(toNullable(toUInt256(2))) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 WITH CUBE ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE toLowCardinality(toNullable(toUInt256(2))) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 WITH CUBE ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 67 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, modulo(6, number, 2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, modulo(6, number, 2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, modulo(6, number, 2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 69 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(toNullable(materialize(2))) * number GROUP BY (number % toNullable(2)) * (number % toLowCardinality(3)), number % 3, modulo(pow(3, toLowCardinality(2)), number, 2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(toNullable(materialize(2))) * number GROUP BY (number % toNullable(2)) * (number % toLowCardinality(3)), number % 3, modulo(pow(3, toLowCardinality(2)), number, 2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(toNullable(materialize(2))) * number GROUP BY (number % toNullable(2)) * (number % toLowCardinality(3)), number % 3, modulo(pow(3, toLowCardinality(2)), number, 2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 70 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % toLowCardinality(3)), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 71 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 73 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT avg(multiply(plus(POWER(toLowCardinality(3), 2), numbers(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS, 10000000), number % 2, number % toNullable(3)), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % materialize(toLowCardinality(3))), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT avg(multiply(plus(POWER(toLowCardinality(3), 2), numbers(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS, 10000000), number % 2, number % toNullable(3)), log(2), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % materialize(toLowCardinality(3))), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 74 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, toLowCardinality(toUInt256(3)), 3), modulo(number), number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, toLowCardinality(toUInt256(3)), 3), modulo(number), number % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, toLowCardinality(toUInt256(3)), 3), modulo(number), number % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 76 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(log(2), number, 2) * (number % 3), modulo(number), number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(log(2), number, 2) * (number % 3), modulo(number), number % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(log(2), number, 2) * (number % 3), modulo(number), number % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 77 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(materialize(toUInt256(2)), number, 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(materialize(toUInt256(2)), number, 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(materialize(toUInt256(2)), number, 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 78 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 79 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC Got boring AST Fuzzing step 80 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC Got boring AST Fuzzing step 81 out of 1000 SELECT avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC Error on processing query 'SELECT avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 82 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE round(avg(multiply(log(2), multiply(256, log(materialize(2)), number), number)), 6) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE round(avg(multiply(log(2), multiply(256, log(materialize(2)), number), number)), 6) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE round(avg(multiply(log(2), multiply(256, log(materialize(2)), number), number)), 6) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 83 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 85 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(avg(toNullable(56) * log(toUInt128(2))), 10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(avg(toNullable(56) * log(toUInt128(2))), 10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg(_CAST(38.816242111356935, 'Nullable(Float64)')) is found in wrong place in query: While processing avg(_CAST(38.816242111356935, 'Nullable(Float64)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 86 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 87 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % toNullable(3), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 88 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toUInt256(2) ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toUInt256(2) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.027104856 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 89 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 90 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toUInt256(3)), number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 91 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(toNullable(2)) GROUP BY (number % 2) * (number % 3), number % toNullable(toUInt256(3)), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE log(toNullable(2)) GROUP BY (number % 2) * (number % 3), number % toNullable(toUInt256(3)), number % 2 ORDER BY k DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 92 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(log(materialize(toLowCardinality(2))), number, toNullable(toUInt256(3))), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(log(materialize(toLowCardinality(2))), number, toNullable(toUInt256(3))), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(log(materialize(toLowCardinality(2))), number, toNullable(toUInt256(3))), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 93 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE clear_column__fuzz_27 GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE clear_column__fuzz_27 GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_27' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE clear_column__fuzz_27 GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 95 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(toNullable(toNullable(57)), number % 2, number % 3), number % toUInt256(3), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(toNullable(toNullable(57)), number % 2, number % 3), number % toUInt256(3), number % 2 ORDER BY k 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 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(toNullable(toNullable(57)), number % 2, number % 3), number % toUInt256(3), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 96 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 19. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 97 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(modulo(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, number, 2) * (number % toLowCardinality(3)), 10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(modulo(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', 57, number, 2) * (number % toLowCardinality(3)), 10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'modulo(toLowCardinality(_CAST('3', 'Nullable(UInt128)')), '01473_metric_log_table_event_start_time_microseconds_test', 57, number, 2) * (number % toLowCardinality(3))', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 98 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(3), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(3), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(3), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 99 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 100 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(materialize(3)), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(materialize(3)), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.014908973 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 101 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 102 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toUInt256(3), number % 2 ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 103 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, power(3, materialize(2)), 3), number % toUInt256(3), number % 2 ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, power(3, materialize(2)), 3), number % toUInt256(3), number % 2 ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, power(3, materialize(2)), 3), number % toUInt256(3), number % 2 ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 104 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toLowCardinality(3), modulo(POWER(2, toNullable(toNullable(3))), number, 2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toLowCardinality(3), modulo(POWER(2, toNullable(toNullable(3))), number, 2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toLowCardinality(3), modulo(POWER(2, toNullable(toNullable(3))), number, 2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 106 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 107 out of 1000 SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) ORDER BY k 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 SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 108 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toNullable(toUInt128(0)), 10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toNullable(toUInt128(0))', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 109 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(modulo(number), 2 % 2, number % 3), number % 3, number % 2 ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(modulo(number), 2 % 2, number % 3), number % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(modulo(number), 2 % 2, number % 3), number % 3, number % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 110 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toNullable(2) ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 111 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % materialize(3)), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number), number % 3, number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number), number % 3, number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number), number % 3, number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 113 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % materialize(3)), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 114 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % materialize(3)), number % toNullable(3), number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 115 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % materialize(3)), number % toNullable(3), number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 116 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % materialize(3)), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 117 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 119 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 120 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DE. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 121 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 122 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 123 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY multiply(number % 3), number % toNullable(toNullable(3)), number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 124 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % toUInt128(2) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 125 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % toUInt128(2) ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 126 out of 1000 EXPLAIN actions = true, optimize = true, sorting = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % toUInt128(2) ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN actions = true, optimize = true, sorting = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % toNullable(3), number % toUInt128(2) ORDER BY k ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 127 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toUInt128(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 128 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toUInt128(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 129 out of 1000 SELECT avg(toString(toString(57, POWER(3, 2), time), POWER(POW(materialize(2))), time), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(toUInt256(3)), number % toUInt128(2) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(toString(toString(57, POWER(3, 2), time), POWER(POW(materialize(2))), time), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(toUInt256(3)), number % toUInt128(2) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(toString(toString(57, POWER(3, 2), time), POWER(POW(materialize(2))), time), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(toUInt256(3)), number % toUInt128(2) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 130 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toUInt128(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 131 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toUInt128(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 132 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 134 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 136 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 137 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 138 out of 1000 EXPLAIN PIPELINE SELECT avg(multiply(avg(log(materialize(toUInt256(toLowCardinality(2)))) * number), log(2), number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % toLowCardinality(toNullable(3))), (number % toUInt128(2))) ORDER BY k DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE SELECT avg(multiply(avg(log(materialize(toUInt256(toLowCardinality(2)))) * number), log(2), number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % toLowCardinality(toNullable(3))), (number % toUInt128(2))) ORDER BY k 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 SELECT avg(multiply(avg(log(materialize(toUInt256(toLowCardinality(2)))) * number), log(2), number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % toLowCardinality(toNullable(3))), (number % toUInt128(2))) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 139 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(log(materialize(toLowCardinality(toUInt256(2)))), 2))) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(log(materialize(toLowCardinality(toUInt256(2)))), 2))) ORDER BY k DESC NULLS FIRST': 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 avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(log(materialize(toLowCardinality(toUInt256(2)))), 2))) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f87ac 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 141 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 142 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 143 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 145 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 146 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 147 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 149 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 150 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 151 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 153 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 155 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 156 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 157 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 158 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 159 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC N. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 160 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 161 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 162 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 163 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC N. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 165 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 166 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 167 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 168 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 169 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 170 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 171 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 172 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 173 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 174 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 176 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 177 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 178 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 179 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(materialize(toLowCardinality(10000000))) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (modulo(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), number, toUInt128(2)))) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(materialize(toLowCardinality(10000000))) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (modulo(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), number, toUInt128(2)))) ORDER BY k 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(_CAST(10000000, 'LowCardinality(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 181 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 182 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 183 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 184 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(2))) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 185 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt128(POWER(POW(toNullable(3), 2), materialize(toLowCardinality(toNullable(3)))), 2))) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(POWER(POW(toNullable(3), 2), materialize(toLowCardinality(toNullable(3)))), 2))) ORDER BY k DESC NULLS FIRST': 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 avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt128(POWER(POW(toNullable(3), 2), materialize(toLowCardinality(toNullable(3)))), 2))) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f8a2f 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 186 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 187 out of 1000 SELECT avg(power(toLowCardinality(3), 3, materialize(2)), log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(power(toLowCardinality(3), 3, materialize(2)), log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(power(toLowCardinality(3), 3, materialize(2)), log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 188 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 189 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(toLowCardinality(toUInt128(6)), 10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(materialize(2)) * number) AS k FROM numbers(toLowCardinality(toUInt128(6)), 10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 190 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 191 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 192 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 193 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (modulo(avg(log(2) * number) IGNORE NULLS, number, materialize(toNullable(3)))), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (modulo(avg(log(2) * number) IGNORE NULLS, number, materialize(toNullable(3)))), (number % 2)) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (modulo(avg(log(2) * number) IGNORE NULLS, number, materialize(toNullable(3)))), (number % 2)) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 194 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (modulo(number) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((modulo(number) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((modulo(number) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 195 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 196 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) PREWHERE toFixedString('ok', toUInt256(2)) GROUP BY GROUPING SETS ( ((number % 2) * (number % toLowCardinality(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) PREWHERE toFixedString('ok', toUInt256(2)) GROUP BY GROUPING SETS (((number % 2) * (number % toLowCardinality(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(2). In query SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) PREWHERE toFixedString('ok', toUInt256(2)) GROUP BY GROUPING SETS (((number % 2) * (number % toLowCardinality(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 197 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 198 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 SELECT '7', avg(log(materialize(2)) * number) AS k FROM numbers(10000000) PREWHERE POWER(POW(toNullable(3), 2), 3) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '7', avg(log(materialize(2)) * number) AS k FROM numbers(10000000) PREWHERE POWER(POW(toNullable(3), 2), 3) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 200 out of 1000 SELECT '7', avg(multiply(1, log(2), number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '7', avg(multiply(1, log(2), number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k 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 SELECT '7', avg(multiply(1, log(2), number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 201 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (modulo(POW(toLowCardinality(3), 2), number, 2))) ORDER BY k DESC Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (modulo(POW(toLowCardinality(3), 2), number, 2))) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (modulo(POW(toLowCardinality(3), 2), number, 2))) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 202 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 203 out of 1000 SELECT '7', avg(log(toUInt128(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 204 out of 1000 SELECT '7', avg(log(toUInt128(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 205 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 207 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 208 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 209 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 210 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 211 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 212 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Got boring AST Fuzzing step 213 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Got boring AST Fuzzing step 214 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Got boring AST Fuzzing step 215 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (modulo(POW(3, 2), number, 3)), (number % 2)) ORDER BY k DESC Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (modulo(POW(3, 2), number, 3)), (number % 2)) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (modulo(POW(3, 2), number, 3)), (number % 2)) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 216 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (multiply(power(materialize(toNullable(3)), toLowCardinality(2)), number % 2, number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((multiply(power(materialize(toNullable(3)), toLowCardinality(2)), number % 2, number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((multiply(power(materialize(toNullable(3)), toLowCardinality(2)), number % 2, number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Got boring AST Fuzzing step 218 out of 1000 SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (modulo(log(toUInt128(2)) * number, number, 3)), (number % 2)) ORDER BY k DESC Error on processing query 'SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (modulo(log(toUInt128(2)) * number, number, 3)), (number % 2)) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (modulo(log(toUInt128(2)) * number, number, 3)), (number % 2)) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 219 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Got boring AST Fuzzing step 220 out of 1000 SELECT '7', avg(log(toLowCardinality(toUInt128(2))) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * modulo(toUInt128(63), number, toNullable(toNullable(3)))), (number % 3), (number % 2)) ORDER BY k DESC Error on processing query 'SELECT '7', avg(log(toLowCardinality(toUInt128(2))) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * modulo(toUInt128(63), number, toNullable(toNullable(3)))), (number % 3), (number % 2)) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT '7', avg(log(toLowCardinality(toUInt128(2))) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * modulo(toUInt128(63), number, toNullable(toNullable(3)))), (number % 3), (number % 2)) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 221 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) WITH CUBE ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 222 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Got boring AST Fuzzing step 223 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Got boring AST Fuzzing step 224 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k ASC Got boring AST Fuzzing step 226 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k ASC Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 227 out of 1000 SELECT '7', avg(log(pow(toLowCardinality(3), 2), 2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Error on processing query 'SELECT '7', avg(log(pow(toLowCardinality(3), 2), 2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT '7', avg(log(pow(toLowCardinality(3), 2), 2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 228 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 229 out of 1000 SELECT materialize(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * modulo(toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT materialize(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * modulo(toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT materialize(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * modulo(toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 230 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 232 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 233 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 234 out of 1000 SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) WHERE toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) WHERE toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k 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 SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) WHERE toFixedString(toLowCardinality(toNullable(toUInt128(3))), '01473_metric_log_table_event_start_time_microseconds_test', toNullable(57)) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 235 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 236 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (multiply(number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((multiply(number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k 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 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((multiply(number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 237 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 238 out of 1000 SELECT '7', avg(log(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), 2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT '7', avg(log(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), 2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '7', avg(log(if(dateDiff(toNullable('second'), toDateTime(time.1), toDateTime(time.2)) = toNullable(0), 'ok', toString(POW(POW(toLowCardinality(3), 2), 2))), 2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 239 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % toNullable(3))), (number % 3), (number % 2)) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT '7', avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 241 out of 1000 SELECT '7', avg(log(materialize(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 243 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (modulo(number, clear_column__fuzz_3, toLowCardinality(2)) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((modulo(number, clear_column__fuzz_3, toLowCardinality(2)) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_3' in scope SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((modulo(number, clear_column__fuzz_3, toLowCardinality(2)) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 244 out of 1000 SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (number % 3), (number % 2)) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 245 out of 1000 SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 246 out of 1000 SELECT toLowCardinality('7'), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 247 out of 1000 SELECT toLowCardinality('7'), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (modulo(number)), (number % toUInt256(2))) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT toLowCardinality('7'), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % toLowCardinality(2)) * (number % 3)), (modulo(number)), (number % toUInt256(2))) ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality('7'), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % toLowCardinality(2)) * (number % 3)), (modulo(number)), (number % toUInt256(2))) ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 248 out of 1000 SELECT '7', avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT '7', avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC Got boring AST Fuzzing step 250 out of 1000 SELECT '7', avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % toLowCardinality(2)) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC Got boring AST Fuzzing step 251 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC Got boring AST Fuzzing step 253 out of 1000 SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt256(toLowCardinality(2)))) ORDER BY k ASC Error on processing query 'SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt256(toLowCardinality(2)))) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT '7', avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % toUInt256(toLowCardinality(2)))) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 254 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 255 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % toUInt256(2))) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 256 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 257 out of 1000 SELECT toNullable('7'), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toNullable('7'), avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 258 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Got boring AST Fuzzing step 262 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) WHERE 1048576 GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Error on processing query 'SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) WHERE 1048576 GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 263 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Got boring AST Fuzzing step 264 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (modulo(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS, number, 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY toLowCardinality(materialize(57)) DESC, k ASC NULLS FIRST Error on processing query 'SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((modulo(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS, number, 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY toLowCardinality(materialize(57)) DESC, k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((modulo(avg(log(toLowCardinality(toLowCardinality(2))) * number) IGNORE NULLS, number, 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY toLowCardinality(materialize(57)) DESC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 265 out of 1000 SELECT toNullable('7'), avg(materialize(materialize(toNullable(3))), log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Error on processing query 'SELECT toNullable('7'), avg(materialize(materialize(toNullable(3))), log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 266 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(POWER(toUInt256(2), 3, 2), 10000000) GROUP BY GROUPING SETS ( (multiply(number % 2)), (number % 3), (number % 2)) ORDER BY k ASC NULLS LAST Error on processing query 'SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(POWER(toUInt256(2), 3, 2), 10000000) GROUP BY GROUPING SETS ((multiply(number % 2)), (number % 3), (number % 2)) ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(POWER(toUInt256(2), 3, 2), 10000000) GROUP BY GROUPING SETS ((multiply(number % 2)), (number % 3), (number % 2)) ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 267 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Got boring AST Fuzzing step 268 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 270 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 271 out of 1000 SELECT '7', avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '7', avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k 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 SELECT '7', avg(multiply(number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 272 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (modulo(pow(materialize(3), materialize(2)), number, 2))) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (modulo(pow(materialize(3), materialize(2)), number, 2))) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (modulo(pow(materialize(3), materialize(2)), number, 2))) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x00000000175164f3 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 273 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 274 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY GROUPING SETS ( ((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY GROUPING SETS (((number % 2) * (number % 3)), (number % 3), (number % 2)) ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 275 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 276 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 SELECT '7', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2))), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT '7', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2))), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT '7', toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2))), avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 278 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)) GROUP BY multiply(number % 2, round(avg(log(toLowCardinality(2)) * number), 6), number % 3), number % 3, modulo(toUInt128(56), number, 2) ORDER BY k ASC Error on processing query 'SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), tupleElement(time, 1)), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)) GROUP BY multiply(number % 2, round(avg(log(toLowCardinality(2)) * number), 6), number % 3), number % 3, modulo(toUInt128(56), number, 2) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE if(equals(dateDiff(toNullable('second'), toDateTime(toNullable(56), time.1), toDateTime(time.2)), pow(materialize(toNullable(toUInt128(3))), toNullable(2)), 0), 'ok', toString(time)) GROUP BY multiply(number % 2, round(avg(log(toLowCardinality(2)) * number), 6), number % 3), number % 3, modulo(toUInt128(56), number, 2) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 279 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 280 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 281 out of 1000 SELECT '7' FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT '7' FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'k' in scope SELECT '7' FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 282 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 283 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 284 out of 1000 SELECT '7', avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 SELECT (number % toNullable(5)) * (number % 5), toLowCardinality(toLowCardinality(toUInt128(toUInt128(57))), toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Error on processing query 'SELECT (number % toNullable(5)) * (number % 5), toLowCardinality(toLowCardinality(toUInt128(toUInt128(57))), toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT (number % toNullable(5)) * (number % 5), toLowCardinality(toLowCardinality(toUInt128(toUInt128(57))), toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 287 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % materialize(toUInt256(2)) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % materialize(toUInt256(2)) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 10.03214024 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 288 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(3), number % 3, number % 2 WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(3), number % 3, number % 2 WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(3), number % 3, number % 2 WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 289 out of 1000 SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(POW(POW(3, 2), 3, 2), number, 3), number % 2 ORDER BY k DESC Error on processing query 'SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(POW(POW(3, 2), 3, 2), number, 3), number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(POW(POW(3, 2), 3, 2), number, 3), number % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 290 out of 1000 SELECT toLowCardinality(POW(toLowCardinality(3)), toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) WHERE toUInt256(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(POW(toLowCardinality(3)), toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) WHERE toUInt256(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(POW(toLowCardinality(3)), toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) WHERE toUInt256(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 291 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 292 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k DESC Got boring AST Fuzzing step 293 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(POWER(materialize(3), materialize(2)), 2) ORDER BY k DESC Error on processing query 'SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(POWER(materialize(3), materialize(2)), 2) ORDER BY k 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(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(POWER(materialize(3), materialize(2)), 2) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 294 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 295 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 296 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 297 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 298 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 299 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 300 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 301 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('toLowCardinality'): toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 302 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 303 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 304 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 305 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 306 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 308 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 309 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 310 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 311 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 313 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 314 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 316 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 317 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 318 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 319 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 320 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 321 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 322 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 323 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 324 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 325 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 326 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 327 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 329 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 331 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 332 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 333 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toLowCardinality'): toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 334 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 335 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 337 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 338 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 339 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 341 out of 1000 EXPLAIN PIPELINE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 342 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 343 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 EXPLAIN SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 345 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 346 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 347 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 348 out of 1000 SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, (number % 2) * (number % toNullable(3)), 3), modulo(number), number % toLowCardinality(2) WITH CUBE ORDER BY k DESC Error on processing query 'SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, (number % 2) * (number % toNullable(3)), 3), modulo(number), number % toLowCardinality(2) WITH CUBE ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * modulo(number, (number % 2) * (number % toNullable(3)), 3), modulo(number), number % toLowCardinality(2) WITH CUBE ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 349 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 350 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 351 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 352 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 353 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toLowCardinality'): toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 354 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('toLowCardinality'): toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 355 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 356 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 357 out of 1000 EXPLAIN ESTIMATE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 358 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 359 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 360 out of 1000 EXPLAIN QUERY TREE SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 361 out of 1000 EXPLAIN SYNTAX SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 362 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 EXPLAIN AST SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 364 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(toUInt256(2), 2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(toNullable('7')), avg(log(toUInt256(2), 2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT toLowCardinality(toNullable('7')), avg(log(toUInt256(2), 2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 366 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(2) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 367 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(number % materialize(3), number, 2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(number % materialize(3), number, 2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, modulo(number % materialize(3), number, 2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 368 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 369 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 370 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 371 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 372 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 373 out of 1000 SELECT toLowCardinality(toNullable('7')), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 374 out of 1000 SELECT toNullable('7'), avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 375 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 376 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 377 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 378 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 380 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY modulo(2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 22. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 23. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 381 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % toLowCardinality(2) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % toLowCardinality(2) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), modulo(number), number % toLowCardinality(2) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 382 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % toLowCardinality(2) ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 383 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 384 out of 1000 EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY numbers(toNullable(toUInt256(10000000))) ASC, k ASC Error on processing query 'EXPLAIN QUERY TREE dump_passes = true, dump_ast = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY numbers(toNullable(toUInt256(10000000))) ASC, k ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 385 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 386 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 387 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(materialize(10000000)) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 388 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 389 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 390 out of 1000 SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k 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 SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 391 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(modulo(10, number, 2)), number % 3, number % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(modulo(10, number, 2)), number % 3, number % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(modulo(10, number, 2)), number % 3, number % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 392 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 393 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 394 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3), modulo(power(3, toNullable(2)), number, 2) ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3), modulo(power(3, toNullable(2)), number, 2) ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) * (number % 3), number % materialize(3), modulo(power(3, toNullable(2)), number, 2) ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 395 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY multiply(number % 3), number % 3, number % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 396 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 397 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 398 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 399 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2) ASC, k DESC NULLS LAST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2) ASC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY POW(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 3, 2) ASC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./contrib/llvm-project/libcxx/include/vector:961: DB::QueryAnalyzer::resolveSortNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x00000000175149d7 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174de10c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 400 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 402 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 403 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 404 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 405 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 406 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 407 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 408 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 409 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 410 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 411 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 412 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 413 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 414 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 415 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 416 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 420 out of 1000 SELECT avg(log(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time)), 2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(toNullable(2)))) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 421 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 422 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57), 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 423 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 424 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 425 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY k 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 426 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 427 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 428 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 429 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, materialize(toUInt256(2))), 2), 3, 2), materialize(2))) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, materialize(toUInt256(2))), 2), 3, 2), materialize(2))) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toFixedString doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(power(POWER(POW(toFixedString(toLowCardinality(toUInt128(3)), '01473_metric_log_table_event_start_time_microseconds_test', 57), 3, materialize(toUInt256(2))), 2), 3, 2), materialize(2))) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 430 out of 1000 SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(2)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(2)) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(2)) WITH TOTALS ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 431 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toLowCardinality(materialize(2))) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 432 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(2)) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 434 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 435 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) GROUP BY POW(3, 2), log(materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(toUInt256(10000000)) GROUP BY POW(3, 2), log(materialize(2)) WITH CUBE WITH TOTALS ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 436 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 437 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH TOTALS ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH TOTALS ORDER BY k ASC NULLS LAST Got boring AST Fuzzing step 440 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 442 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 443 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 444 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 445 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 446 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_18 GROUP BY POW(3, 2), log(2) ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_18 GROUP BY POW(3, 2), log(2) ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_18' in scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_18 GROUP BY POW(3, 2), log(2) ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 447 out of 1000 SELECT avg(toNullable(materialize(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, toLowCardinality(56)), 56) * log(2)), avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, k ASC NULLS FIRST Error on processing query 'SELECT avg(toNullable(materialize(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, toLowCardinality(56)), 56) * log(2)), avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, k 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 SELECT avg(toNullable(materialize(avg(log(toLowCardinality(2)) * number) IGNORE NULLS, toLowCardinality(56)), 56) * log(2)), avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) ORDER BY if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(time)) ASC, k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 448 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(pow(materialize(3), toNullable(toNullable(2))), 3, 2), log(clear_column__fuzz_9, 2) ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(pow(materialize(3), toNullable(toNullable(2))), 3, 2), log(clear_column__fuzz_9, 2) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(pow(materialize(3), toNullable(toNullable(2))), 3, 2), log(clear_column__fuzz_9, 2) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 449 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 451 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 452 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 454 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 457 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 458 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 459 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 460 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 461 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, materialize(2)), log(2) ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 462 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE round(6) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 464 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(POW(3, materialize(materialize(materialize(2)))), 10000000) WHERE round(6) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(POW(3, materialize(materialize(materialize(2)))), 10000000) WHERE round(6) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k 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): pow(3, materialize(materialize(materialize(2)))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 465 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 466 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(materialize(toUInt128(10000000))) GROUP BY POW(3, 2), log(toUInt128(2)) WITH ROLLUP ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(materialize(toUInt128(10000000))) GROUP BY POW(3, 2), log(toUInt128(2)) WITH ROLLUP ORDER BY k 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(_CAST('10000000', 'UInt128')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 467 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Got boring AST Fuzzing step 468 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Got boring AST Fuzzing step 469 out of 1000 SELECT avg(multiply(log(2), round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))), number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Error on processing query 'SELECT avg(multiply(log(2), round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))), number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(multiply(log(2), round(avg(log(2) * number) IGNORE NULLS, materialize(toLowCardinality(toLowCardinality(6)))), number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 470 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Got boring AST Fuzzing step 471 out of 1000 SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Error on processing query 'SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 472 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 473 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 474 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Got boring AST Fuzzing step 475 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(3, 2) WITH ROLLUP ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(3, 2) WITH ROLLUP ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(3, 2) WITH ROLLUP ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 476 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Got boring AST Fuzzing step 477 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k ASC Got boring AST Fuzzing step 478 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(avg(log(toUInt256(toLowCardinality(2))) * number), 2) WITH ROLLUP ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(avg(log(toUInt256(toLowCardinality(2))) * number), 2) WITH ROLLUP ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(avg(log(toUInt256(toLowCardinality(2))) * number), 2) WITH ROLLUP ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 479 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 480 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(round(avg(multiply(log(toNullable(materialize(2))), clear_column__fuzz_28, number)) IGNORE NULLS), 3, 2), log(2) WITH ROLLUP ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(round(avg(multiply(log(toNullable(materialize(2))), clear_column__fuzz_28, number)) IGNORE NULLS), 3, 2), log(2) WITH ROLLUP ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_28' in scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(round(avg(multiply(log(toNullable(materialize(2))), clear_column__fuzz_28, number)) IGNORE NULLS), 3, 2), log(2) WITH ROLLUP ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 481 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(toLowCardinality(toUInt256(3)), 2), log(2) WITH ROLLUP ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(toLowCardinality(toUInt256(3)), 2), log(2) WITH ROLLUP ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(toLowCardinality(toUInt256(3)), 2), log(2) WITH ROLLUP ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 482 out of 1000 SELECT avg(multiply(log(2), (number % 2) * (number % toNullable(materialize(3))), number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)) ASC, k DESC Error on processing query 'SELECT avg(multiply(log(2), (number % 2) * (number % toNullable(materialize(3))), number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY if(dateDiff('second', toDateTime(tupleElement(time, 1)), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)) ASC, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(multiply(log(2), (number % 2) * (number % toNullable(materialize(3))), number)) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY if(dateDiff('second', toDateTime(time.1), pow(3, toLowCardinality(2)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(2, toLowCardinality(3)), time)) ASC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 483 out of 1000 SELECT avg(log(materialize(2)) * number) AS k FROM numbers(materialize(toNullable(10000000))) GROUP BY POW(3, 2), log(2) WITH ROLLUP WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(materialize(2)) * number) AS k FROM numbers(materialize(toNullable(10000000))) GROUP BY POW(3, 2), log(2) WITH ROLLUP WITH TOTALS ORDER BY k 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 484 out of 1000 SELECT avg(toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Error on processing query 'SELECT avg(toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 5, should be 2: In scope SELECT avg(toFixedString(3, POW(3, '01473_metric_log_table_event_start_time_microseconds_test', 57, 3, 2), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test'), 57), log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 485 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 486 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(2) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 487 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 488 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 489 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 491 out of 1000 SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Error on processing query 'SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(log(2))) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 492 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 494 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 495 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 496 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 497 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(2))) WITH ROLLUP ORDER BY k DESC Got boring AST Fuzzing step 498 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(toUInt256(2)))) WITH ROLLUP ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 499 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(toUInt256(3), 2), log(materialize(toNullable(toUInt256(2)))) WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(toUInt256(3), 2), log(materialize(toNullable(toUInt256(2)))) WITH ROLLUP ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(toUInt256(3), 2), log(materialize(toNullable(toUInt256(2)))) WITH ROLLUP ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df4841e 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 500 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(toUInt256(2)))) WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 501 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(materialize(toNullable(toUInt256(2)))) WITH ROLLUP ORDER BY k DESC NULLS LAST Got boring AST Fuzzing step 502 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY POW(3, 2), log(toNullable(toUInt256(2))) WITH ROLLUP ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ( (POW(3, 2)), (log(toNullable(toUInt256(2))))) WITH ROLLUP ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY GROUPING SETS ((POW(3, 2)), (log(toNullable(toUInt256(2))))) WITH ROLLUP ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:5303: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dfb1c 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 7. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 9. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 11. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 13. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 15. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 16. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 18. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 19. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 20. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 21. __tsan_thread_start_func @ 0x000000000758ef2f 22. ? @ 0x00007f341fe93ac3 23. ? @ 0x00007f341ff258d0 Fuzzing step 504 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 506 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 507 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 508 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 509 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 510 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 511 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 513 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 514 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 515 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 516 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 517 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 518 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 519 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 520 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 521 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 522 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 523 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 524 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 525 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 526 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 527 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 528 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 529 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 530 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 531 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 532 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 533 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 534 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 535 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 536 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 537 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 538 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 540 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 541 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 542 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 543 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), 3), toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), 3), toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)), 3), toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 544 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 545 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 546 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 547 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 548 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 549 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 550 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 551 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 552 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 553 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 554 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 555 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 556 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 557 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 558 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 559 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 560 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 561 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 562 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) GROUP BY toString(toUInt128(57), time), round(avg(log(toUInt256(3), 2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) GROUP BY toString(toUInt128(57), time), round(avg(log(toUInt256(3), 2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(2, 57, POWER(POW(3, toLowCardinality(toNullable(toUInt256(2))))), time)) GROUP BY toString(toUInt128(57), time), round(avg(log(toUInt256(3), 2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 563 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 564 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 565 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 566 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 567 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 568 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 569 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 570 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 571 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 572 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 573 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 574 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 575 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 576 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 577 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 578 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 579 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 580 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 581 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 582 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 583 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 584 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 585 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 586 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 587 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 588 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 589 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 590 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 591 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 592 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 593 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 594 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 595 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 596 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 597 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 598 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 599 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(multiply(log(2))) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(multiply(log(2))) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(multiply(log(2))) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 600 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 601 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 602 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 603 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 604 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 605 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 606 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 607 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 608 out of 1000 SELECT toUInt128(toUInt128(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT toUInt128(toUInt128(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toUInt128(toUInt128(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 609 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 610 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 611 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 612 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 613 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 614 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 615 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 616 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 617 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 618 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 619 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 620 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 621 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 622 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 623 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 624 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 625 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 626 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 627 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 628 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 629 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 630 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 631 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 632 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 633 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 634 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 635 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 636 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 637 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 638 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 639 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 640 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 641 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 642 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 643 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 644 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 645 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 646 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 647 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 648 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 649 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 650 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 651 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 652 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 653 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 654 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 655 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 656 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 657 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 659 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 660 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 661 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 662 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 663 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 664 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 665 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 666 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 667 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 668 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 669 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 670 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 671 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 672 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 673 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 674 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 676 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 677 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 678 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 679 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 680 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 681 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 682 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 683 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 684 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 685 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 686 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 687 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 688 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 689 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 690 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 691 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 692 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 693 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 694 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 695 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 696 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 697 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 698 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 699 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 700 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 701 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 702 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 703 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 704 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 705 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 706 out of 1000 SELECT avg(multiply(log(2), POWER(2, toNullable(toNullable(3))), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(multiply(log(2), POWER(2, toNullable(toNullable(3))), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(multiply(log(2), POWER(2, toNullable(toNullable(3))), number)) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 707 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 708 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 709 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 710 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 711 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 712 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 713 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 714 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 715 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 717 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 718 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 719 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 720 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 721 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 722 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 723 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 724 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 725 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 726 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 727 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 728 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 729 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 730 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 731 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 732 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 733 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 734 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 735 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 736 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 737 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 738 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 739 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 740 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 741 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 742 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 743 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 744 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 745 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 746 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 747 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 748 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 749 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 750 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 751 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 752 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 753 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 754 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 755 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 756 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 757 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 758 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 759 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 760 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 761 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 762 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 763 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 764 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 765 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 766 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 768 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 769 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 770 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 771 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 772 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 773 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 774 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 775 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 776 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 777 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 778 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 779 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 780 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 781 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 782 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 783 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 784 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 785 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 786 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 787 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 788 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 789 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 790 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 791 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 792 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(3, toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(3, toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(3, toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 793 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 794 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 795 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 796 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 797 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 798 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 799 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 800 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 801 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 802 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 803 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 804 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 805 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 806 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 807 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 808 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 809 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 810 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 811 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(6), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(6), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(6), POWER(toLowCardinality(3), 2) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 812 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 813 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 814 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 815 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 816 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 817 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 818 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 819 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 820 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 821 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 822 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 823 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 824 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 825 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 826 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 827 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 828 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 829 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 830 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 831 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 832 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 833 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 834 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 835 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 836 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 837 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 838 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 839 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 840 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 841 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 842 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 843 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 844 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 845 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 846 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 847 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 848 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 849 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 850 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 851 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 852 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 853 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 854 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 855 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 856 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 857 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 858 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 859 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 860 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 861 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 862 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 863 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 864 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 865 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 866 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 867 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 868 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 869 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 870 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 871 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 872 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 873 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 874 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 875 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 876 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 877 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 878 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 879 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 880 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 881 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 882 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 883 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 884 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 885 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 886 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 887 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 888 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 889 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 890 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 891 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 892 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 893 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 894 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 895 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 896 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 897 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 898 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 899 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 900 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 901 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 902 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 903 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 904 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 905 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 906 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(3, toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(3, toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(3, toNullable(2)) WITH TOTALS ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 907 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 908 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 909 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 910 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 911 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 912 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 913 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 914 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 915 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 916 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 917 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 918 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 919 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 920 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 921 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 922 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 923 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 924 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 925 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 926 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 927 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 928 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 929 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 930 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 931 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 932 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 933 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 934 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 935 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 936 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 937 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 938 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 939 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 940 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 941 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 942 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 943 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 944 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 945 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 946 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 947 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 948 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 949 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 950 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 951 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 952 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 953 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 954 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 955 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 956 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 957 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 958 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 959 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 960 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 961 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 962 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 963 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 964 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 965 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 966 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 967 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 968 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 969 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 970 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 971 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 972 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 973 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 974 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 975 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 976 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 977 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 978 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 979 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 980 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 981 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 982 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 983 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 984 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 985 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 986 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC', required columns: 'time' 'number', maybe you meant: 'number': While processing SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toUInt128(57), time, round(avg(log(2) * number) IGNORE NULLS, 6), pow(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 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 @ 0x00000000181807a4 5. ./build_docker/./src/Interpreters/InterpreterSelectQuery.cpp:649: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr 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 @ 0x0000000017daf917 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) @ 0x0000000017daa783 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) @ 0x0000000017da634c 8. ./contrib/llvm-project/libcxx/include/optional:260: DB::InterpreterSelectQuery::InterpreterSelectQuery(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017da5fe6 9. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InDepthNodeVisitor>::doVisit(std::shared_ptr&) @ 0x0000000017ccc050 10. ./src/Interpreters/InDepthNodeVisitor.h:64: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc412 11. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 12. ./src/Interpreters/InDepthNodeVisitor.h:0: void DB::InDepthNodeVisitor>::visitChildren(std::shared_ptr&) @ 0x0000000017ccc41d 13. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3560 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 15. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 988 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 989 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 990 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 991 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 992 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 993 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 994 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 995 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Got boring AST Fuzzing step 996 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1f5d 17. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 18. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 997 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr, unsigned long) @ 0x0000000017cd6004 14. ./contrib/llvm-project/libcxx/include/vector:438: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc400a 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 998 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(toUInt128(57), time), round(avg(log(2) * number) IGNORE NULLS, 6), POWER(toLowCa. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 999 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, toString(2, 57, POWER(toUInt256(2), 3, 2), time), 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, toString(2, 57, POWER(toUInt256(2), 3, 2), time), 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(57, time), round(avg(log(2) * number) IGNORE NULLS, toString(2, 57, POWER(toUInt256(2), 3, 2), time), 6), POWER(toLowCardinality(3), toNullable(2)) WITH TOTALS ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 0 out of 1000 Query succeeded, using this AST as a start Fuzzing step 1 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE toLowCardinality(0) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE toLowCardinality(0) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 4 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 5 out of 1000 SELECT avg(log(toLowCardinality(toString(2, 57, POWER(POW(3, 2), 2), time), 2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT avg(log(toLowCardinality(toString(2, 57, POWER(POW(3, 2), 2), time), 2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(toLowCardinality(toString(2, 57, POWER(POW(3, 2), 2), time), 2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 6 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(materialize(toUInt128(2)))))) = 0, toFixedString('ok', toUInt128(2), toUInt256(2)), toString(time)) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(materialize(toUInt128(2)))))) = 0, toFixedString('ok', toUInt128(2), toUInt256(2)), toString(time)) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(materialize(toUInt128(2)))))) = 0, toFixedString('ok', toUInt128(2), toUInt256(2)), toString(time)) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 8 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 9 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 10 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 11 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 12 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 13 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 14 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 15 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 16 out of 1000 SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) RESPECT NULLS AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 17 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 18 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 19 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 20 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 21 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 22 out of 1000 EXPLAIN SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 23 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 24 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 25 out of 1000 EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % 2 WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % 2 WITH TOTALS ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 26 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 27 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 28 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC Got boring AST Fuzzing step 29 out of 1000 SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC NULLS LAST Error on processing query 'SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 30 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), 10000000) GROUP BY (number % 2) % 3, number % toUInt128(toLowCardinality(toUInt128(2))) WITH TOTALS ORDER BY k DESC Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(dateDiff(toNullable(toFixedString('second', 6)), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0), 10000000) GROUP BY (number % 2) % 3, number % toUInt128(toLowCardinality(toUInt128(2))) WITH TOTALS ORDER BY k DESC': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'dateDiff(toNullable(_CAST('second', 'FixedString(6)')), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))) = toNullable(0)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 31 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 32 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(toUInt128(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(toUInt128(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(toUInt128(2)) WITH TOTALS ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 33 out of 1000 SELECT avg(log(toLowCardinality(toLowCardinality(toNullable(2)))) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % toUInt128(2) WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 34 out of 1000 SELECT avg(log(toLowCardinality(toLowCardinality(2))) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 35 out of 1000 SELECT avg(log(toLowCardinality(toLowCardinality(2))) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 WITH TOTALS ORDER BY k ASC NULLS FIRST Got boring AST Fuzzing step 36 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 37 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 38 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(number) ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(number) ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(number) ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 39 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 40 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 41 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 42 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 43 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 44 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(toLowCardinality(10000000)) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 45 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 46 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE materialize(power(toLowCardinality(3), toNullable(3), materialize(2)), 3) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 47 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % toNullable(2)) % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 48 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % toNullable(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), toLowCardinality(2))) % 3, number % 2 ORDER BY k ASC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % toNullable(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), toLowCardinality(2))) % 3, number % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % toNullable(toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), toLowCardinality(2))) % 3, number % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 49 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 50 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k ASC Got boring AST Fuzzing step 51 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 52 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, number % 2 ORDER BY k DESC Got boring AST Fuzzing step 53 out of 1000 EXPLAIN PIPELINE compact = true SELECT POWER(POW(3, materialize(toNullable(2))), 2), avg(multiply(log(2))) AS k FROM numbers(toFixedString('ok', 2, 2), 10000000) GROUP BY (number % 2) % 3, number % 2 WITH ROLLUP ORDER BY k DESC Error on processing query 'EXPLAIN PIPELINE compact = true SELECT POWER(POW(3, materialize(toNullable(2))), 2), avg(multiply(log(2))) AS k FROM numbers(toFixedString('ok', 2, 2), 10000000) GROUP BY (number % 2) % 3, number % 2 WITH ROLLUP ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 54 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(number) ORDER BY k DESC Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(number) ORDER BY k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % 2) % 3, modulo(number) ORDER BY k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 55 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 56 out of 1000 EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toNullable(2))) % 3, number % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toNullable(2))) % 3, number % 2 ORDER BY k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 57 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % 2 ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 58 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 59 out of 1000 EXPLAIN PIPELINE SELECT avg(57, log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC, k DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE SELECT avg(57, log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC, k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x000000001627006b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc3cae 19. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 20. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 60 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 61 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC Query succeeded, using this AST as a start Fuzzing step 62 out of 1000 SELECT avg(multiply(log(toLowCardinality(2)), toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time), number)) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC Error on processing query 'SELECT avg(multiply(log(toLowCardinality(2)), toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time), number)) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT avg(multiply(log(toLowCardinality(2)), toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), time), number)) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 63 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(2)) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC Got boring AST Fuzzing step 64 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toUInt128(2))) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 65 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toUInt128(2))) % 3, number % toNullable(2) ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC NULLS FIRST Got boring AST Fuzzing step 66 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toUInt128(2))) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST, k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 67 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toUInt128(2))) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 68 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toUInt128(2))) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC, k DESC Got boring AST Fuzzing step 69 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) GROUP BY (number % materialize(toUInt128(2))) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 70 out of 1000 SELECT avg(number % materialize(toUInt128(3)), log(2) * number) AS k FROM numbers(materialize(toLowCardinality(10000000))) GROUP BY (number % materialize(toUInt128(2))) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST, k DESC Error on processing query 'SELECT avg(number % materialize(toUInt128(3)), log(2) * number) AS k FROM numbers(materialize(toLowCardinality(10000000))) GROUP BY (number % materialize(toUInt128(2))) % 3, number % 2 ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST, k 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(_CAST(10000000, 'LowCardinality(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 71 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC Query succeeded, using this AST as a start Fuzzing step 72 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC Got boring AST Fuzzing step 73 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC Got boring AST Fuzzing step 74 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 75 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC NULLS LAST Got boring AST Fuzzing step 76 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE log(toNullable(toUInt128(2))) * number WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC, k DESC Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT avg(log(2) * number) AS k FROM numbers(10000000) PREWHERE log(toNullable(toUInt128(2))) * number WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC, k 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 77 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 78 out of 1000 SELECT avg(log(number % toUInt256(2), toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC NULLS LAST Error on processing query 'SELECT avg(log(number % toUInt256(2), toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(number % toUInt256(2), toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 79 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC, k DESC NULLS LAST Got boring AST Fuzzing step 80 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 81 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 82 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 83 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 84 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 85 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 86 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 87 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 88 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 89 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 90 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 91 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 92 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 93 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 94 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 95 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 96 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 97 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 98 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 99 out of 1000 EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('avg'): avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 100 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 101 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 102 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 103 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 104 out of 1000 EXPLAIN QUERY TREE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 105 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 106 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 107 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 108 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 1048576, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 1048576, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 1048576, toLowCardinality(toFixedString('ok', 2)), toString(power(POWER(POW(3, 2), 2), toNullable(3), 2), time)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 109 out of 1000 EXPLAIN ESTIMATE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 110 out of 1000 EXPLAIN SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 111 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 112 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 113 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 114 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 115 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 116 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY avg(log(toLowCardinality(toLowCardinality(toUInt128(2)))) * number), POW(toLowCardinality(3), 2) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY avg(log(toLowCardinality(toLowCardinality(toUInt128(2)))) * number), POW(toLowCardinality(3), 2) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(toLowCardinality(toLowCardinality(toUInt128(2)))) * number) is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 117 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 118 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 119 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 120 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 121 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 122 out of 1000 SELECT toNullable(materialize(3)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 123 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 124 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 125 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 126 out of 1000 SELECT toNullable(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 127 out of 1000 EXPLAIN TABLE OVERRIDE SELECT toNullable(3), avg(multiply(log(2), '01473_trace_log_table_event_start_time_microseconds_test', number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT toNullable(3), avg(multiply(log(2), '01473_trace_log_table_event_start_time_microseconds_test', number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('toNullable'): toNullable(3), avg(multiply(log(2), '01473_trace_log_table_event_start_time_microseconds_test', number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS OR. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 128 out of 1000 SELECT 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 129 out of 1000 SELECT toNullable(toUInt256(2)), 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 130 out of 1000 SELECT toUInt256(2), 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 131 out of 1000 SELECT toUInt256(2), toUInt128(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 132 out of 1000 SELECT toUInt256(2), 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 133 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 134 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 135 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), max(log(toLowCardinality(2)) * number), time), toLowCardinality(materialize(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), max(log(toLowCardinality(2)) * number), time), toLowCardinality(materialize(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = 0, toFixedString('ok', 2), toString(time)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY toString(POW(toLowCardinality(POW(toLowCardinality(3), toNullable(2)), 2)), max(log(toLowCardinality(2)) * number), time), toLowCardinality(materialize(2)), if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, toFixedString('ok', 2), toString(time)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 136 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 137 out of 1000 SELECT materialize(2), 3, avg(max(log(toUInt256(2)) * number) IGNORE NULLS, log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT materialize(2), 3, avg(max(log(toUInt256(2)) * number) IGNORE NULLS, log(2) * number) IGNORE NULLS AS k FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 138 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 139 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 140 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 141 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 34 ('2'): 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 142 out of 1000 EXPLAIN SYNTAX SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 143 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 144 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 145 out of 1000 EXPLAIN ESTIMATE SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 146 out of 1000 EXPLAIN QUERY TREE SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 147 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 148 out of 1000 SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 149 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 39 ('2'): 2, 3, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(materialize(toLowCardinality(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 150 out of 1000 SELECT 2, 3, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 151 out of 1000 SELECT 2, 3, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 152 out of 1000 SELECT 2, 3, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 153 out of 1000 SELECT 2, 3, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 154 out of 1000 SELECT 2, 3, avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(max(log(toLowCardinality(2)) * number) IGNORE NULLS, 0), 'ok', toString(POW(2), time)), toNullable(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT 2, 3, avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(max(log(toLowCardinality(2)) * number) IGNORE NULLS, 0), 'ok', toString(POW(2), time)), toNullable(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, 3, avg(log(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toLowCardinality(max(log(toLowCardinality(2)) * number) IGNORE NULLS, 0), 'ok', toString(POW(2), time)), toNullable(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 155 out of 1000 SELECT 2, 3, avg(log(round(avg(log(2) * number) IGNORE NULLS, POWER(POW(3, 2), 2), 6), toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT 2, 3, avg(log(round(avg(log(2) * number) IGNORE NULLS, POWER(POW(3, 2), 2), 6), toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: An incorrect number of arguments was specified for function 'round'. Expected 1 mandatory argument and 1 optional argument, got 3 arguments: In scope SELECT 2, 3, avg(log(round(avg(log(2) * number) IGNORE NULLS, POWER(POW(3, 2), 2), 6), toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 5. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 6. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 7. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 8. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 9. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 156 out of 1000 SELECT 2, 3, avg(log(toString(2, 57, POWER(POW(3, 2), 2), time), toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT 2, 3, avg(log(toString(2, 57, POWER(POW(3, 2), 2), time), toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT 2, 3, avg(log(toString(2, 57, POWER(POW(3, 2), 2), time), toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 157 out of 1000 SELECT 2, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 158 out of 1000 SELECT 2, avg(log(toNullable(avg(multiply(number)) IGNORE NULLS, 2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT 2, avg(log(toNullable(avg(multiply(number)) IGNORE NULLS, 2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT 2, avg(log(toNullable(avg(multiply(number)) IGNORE NULLS, 2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 30. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 Fuzzing step 159 out of 1000 SELECT 2, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 160 out of 1000 SELECT 2, avg(log(toNullable(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT 2, avg(log(toNullable(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 161 out of 1000 SELECT 2, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 162 out of 1000 SELECT 2, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 163 out of 1000 SELECT 2, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 164 out of 1000 SELECT 2, avg(materialize(pow(3, toNullable(2)), toLowCardinality(6)), log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT 2, avg(materialize(pow(3, toNullable(2)), toLowCardinality(6)), log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 2, avg(materialize(pow(3, toNullable(2)), toLowCardinality(6)), log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 165 out of 1000 SELECT 2, avg(log(toNullable(2)) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 166 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 167 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 168 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 169 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 170 out of 1000 SELECT toUInt256(2), log(toLowCardinality(toLowCardinality(2))) * number, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT toUInt256(2), log(toLowCardinality(toLowCardinality(2))) * number, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT toUInt256(2), log(toLowCardinality(toLowCardinality(2))) * number, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755716d 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 171 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 172 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 173 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 174 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 175 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 176 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 177 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 178 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 179 out of 1000 SELECT toUInt256(2), avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 180 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 181 out of 1000 EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 2, avg(multiply(log(2), materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, `graph=1` = true SELECT 2, avg(multiply(log(2), materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), number)) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 182 out of 1000 EXPLAIN AST SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 183 out of 1000 EXPLAIN SYNTAX SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 184 out of 1000 EXPLAIN SYNTAX SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 185 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 40 ('2'): 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_qu. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 186 out of 1000 EXPLAIN SYNTAX SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 187 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 188 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 189 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 190 out of 1000 SELECT 2, avg(log(2) * number) AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 191 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 192 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 193 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 194 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 195 out of 1000 EXPLAIN PIPELINE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 196 out of 1000 EXPLAIN PIPELINE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 197 out of 1000 EXPLAIN PIPELINE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 198 out of 1000 EXPLAIN ESTIMATE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 199 out of 1000 EXPLAIN ESTIMATE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 200 out of 1000 EXPLAIN TABLE OVERRIDE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 35 ('2'): 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, material. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 201 out of 1000 EXPLAIN ESTIMATE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 202 out of 1000 EXPLAIN ESTIMATE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 203 out of 1000 EXPLAIN ESTIMATE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 204 out of 1000 EXPLAIN ESTIMATE SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 205 out of 1000 EXPLAIN AST SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 206 out of 1000 EXPLAIN AST SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 207 out of 1000 EXPLAIN AST SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 208 out of 1000 EXPLAIN AST SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 209 out of 1000 EXPLAIN AST SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 210 out of 1000 EXPLAIN SYNTAX SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 211 out of 1000 EXPLAIN SYNTAX SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 212 out of 1000 EXPLAIN AST SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 213 out of 1000 EXPLAIN SYNTAX SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 214 out of 1000 EXPLAIN SYNTAX SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 215 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 216 out of 1000 SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT 2 FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x00000000076373fa 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:359: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755748b 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 217 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 218 out of 1000 SELECT 2, materialize(materialize('01473_metric_log_table_event_start_time_microseconds_test')), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 219 out of 1000 SELECT 2, materialize('01473_metric_log_table_event_start_time_microseconds_test'), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 220 out of 1000 SELECT 2, '01473_metric_log_table_event_start_time_microseconds_test', avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 221 out of 1000 SELECT 2, '01473_metric_log_table_event_start_time_microseconds_test', avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 222 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 223 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 224 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 225 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 226 out of 1000 SELECT 2, avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT 2, avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT 2, avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 227 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 228 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 229 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 230 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 231 out of 1000 SELECT toLowCardinality(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toFixedString('ok', toUInt128(toUInt256(2))), 10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT toLowCardinality(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toFixedString('ok', toUInt128(toUInt256(2))), 10000000) WITH TOTALS ORDER BY log(materialize(toLowCardinality(toUInt256(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type FixedString(2) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 232 out of 1000 SELECT toNullable(2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 233 out of 1000 SELECT 2, avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 234 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 235 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 236 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 237 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 238 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 239 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 240 out of 1000 SELECT avg(log(toNullable(toUInt128(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY max(log(toLowCardinality(toUInt128(2))) * number), avg(log(toNullable(2)) * number) IGNORE NULLS WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(log(toNullable(toUInt128(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY max(log(toLowCardinality(toUInt128(2))) * number), avg(log(toNullable(2)) * number) IGNORE NULLS WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max(log(toLowCardinality(toUInt128(2))) * number) is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 241 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 242 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 243 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 244 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 245 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 246 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 247 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 248 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 249 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 250 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 251 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 252 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 253 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 254 out of 1000 SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 255 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 256 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 257 out of 1000 SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(POWER(2, toNullable(toNullable(3))), 2, toUInt256(57)), POWER(2, 3, 2), time)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, dateDiff(toLowCardinality('second'), toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(POWER(2, toNullable(toNullable(3))), 2, toUInt256(57)), POWER(2, 3, 2), time)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT if(dateDiff('second', toDateTime(tupleElement(POWER(materialize(toLowCardinality(3)), toLowCardinality(2)), time, 1)), toDateTime(tupleElement(time, toNullable(2)))) = 0, dateDiff(toLowCardinality('second'), toDateTime(time.1), toDateTime(tupleElement(time, materialize(materialize(toUInt256(toUInt128(3))), toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, 'ok', toString(toUInt128(POWER(2, toNullable(toNullable(3))), 2, toUInt256(57)), POWER(2, 3, 2), time)), avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017500909 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 258 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 259 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 260 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 261 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 262 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(56 * log(materialize(toUInt256(2))), 10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(56 * log(materialize(toUInt256(2))), 10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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): multiply(56, log(materialize(_CAST('2', 'UInt256')))). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 263 out of 1000 SELECT avg(log(modulo(number, clear_column__fuzz_3, toLowCardinality(2)) * (number % 3), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT avg(log(modulo(number, clear_column__fuzz_3, toLowCardinality(2)) * (number % 3), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_3' in scope SELECT avg(log(modulo(number, clear_column__fuzz_3, toLowCardinality(2)) * (number % 3), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 264 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 265 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 266 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 267 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 268 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 269 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 270 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 271 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 272 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 273 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 274 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 275 out of 1000 SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE toNullable(56) * log(toUInt128(toLowCardinality(2))) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) AS k FROM numbers(10000000) WHERE toNullable(56) * log(toUInt128(toLowCardinality(2))) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 276 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 277 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 278 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 279 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 280 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 281 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 282 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 283 out of 1000 EXPLAIN SYNTAX SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 284 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 285 out of 1000 EXPLAIN PIPELINE SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 286 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 287 out of 1000 EXPLAIN AST SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 288 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 289 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 290 out of 1000 EXPLAIN PIPELINE `graph=1` = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE `graph=1` = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 291 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 292 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 293 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 294 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 295 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 296 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 297 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 298 out of 1000 SELECT toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT toString(toString(57, POWER(materialize(3), 2), time), POWER(POW(2)), time), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 299 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 300 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 301 out of 1000 SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT avg(multiply(log(2))) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 302 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 303 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(10000000)) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 304 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(avg(toNullable(56) * log(toUInt128(2))), 6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(avg(toNullable(56) * log(toUInt128(2))), 6) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg(toNullable(56) * log(toUInt128(2))) is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 9. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 305 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) GROUP BY round(6) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 306 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 307 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 308 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(max(log(2) * number), 10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(max(log(2) * number), 10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max(multiply(log(2), number)) is found in wrong place in query: While processing max(log(2) * number). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 309 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 310 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 311 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 312 out of 1000 SELECT avg(log(toLowCardinality(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 313 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 314 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 315 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 316 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 317 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 318 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 319 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 320 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 321 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 322 out of 1000 SELECT avg(toNullable(6), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(toNullable(6), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: DB::(anonymous namespace)::createAggregateFunctionAvg(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x00000000135ddb0c 5. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 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 @ 0x0000000016270334 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 323 out of 1000 EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'EXPLAIN PIPELINE `graph=1` = true, compact = true SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String const&, char const (&) [9], String&&) @ 0x0000000017cd3b8c 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc649a 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 324 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 325 out of 1000 SELECT avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 326 out of 1000 SELECT avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 327 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 328 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_13 WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_13 WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Unknown expression identifier 'clear_column__fuzz_13' in scope SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE clear_column__fuzz_13 WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd65c 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 8. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 12. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 14. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 16. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 17. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 19. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 20. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 21. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 22. __tsan_thread_start_func @ 0x000000000758ef2f 23. ? @ 0x00007f341fe93ac3 24. ? @ 0x00007f341ff258d0 Fuzzing step 329 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 330 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 331 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 332 out of 1000 SELECT avg(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, 2))) = toUInt128(0), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT avg(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = toUInt128(0), log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 333 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 334 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 335 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 336 out of 1000 SELECT POW(toLowCardinality(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 337 out of 1000 SELECT POW(toLowCardinality(toLowCardinality(2), 3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT POW(toLowCardinality(toLowCardinality(2), 3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT POW(toLowCardinality(toLowCardinality(2), 3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 338 out of 1000 SELECT POW(toLowCardinality(3), 2), avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT POW(toLowCardinality(3), 2), avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: FixedString(63). In query SELECT POW(toLowCardinality(3), 2), avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toFixedString('01473_query_thread_log_table_event_start_time_microseconds_test', 63) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 339 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 340 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 341 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 342 out of 1000 SELECT POW(3, 2), avg(log(number % toUInt128(2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT POW(3, 2), avg(log(number % toUInt128(2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT POW(3, 2), avg(log(number % toUInt128(2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 343 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 344 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 345 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 346 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 347 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS, 10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(max(log(materialize(toUInt256(2))) * number) IGNORE NULLS, 10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max(multiply(log(materialize(_CAST('2', 'UInt256'))), number)) IGNORE NULLS is found in wrong place in query: While processing max(log(materialize(_CAST('2', 'UInt256'))) * number) IGNORE NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 348 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 349 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 350 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 351 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 352 out of 1000 SELECT POW(3, toUInt256(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT POW(3, toUInt256(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT POW(3, toUInt256(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 353 out of 1000 SELECT POW(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT POW(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT POW(3), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 354 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 355 out of 1000 SELECT POW(3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 356 out of 1000 SELECT POW(3, 2), log(toLowCardinality(2)) * number, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT POW(3, 2), log(toLowCardinality(2)) * number, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT POW(3, 2), log(toLowCardinality(2)) * number, avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 7. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 8. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755716d 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 12. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 14. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 16. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 17. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 18. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 20. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 21. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 23. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 24. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 25. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 26. __tsan_thread_start_func @ 0x000000000758ef2f 27. ? @ 0x00007f341fe93ac3 28. ? @ 0x00007f341ff258d0 Fuzzing step 357 out of 1000 SELECT POW(3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 358 out of 1000 SELECT POW(3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 359 out of 1000 SELECT POW(3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 360 out of 1000 SELECT POW(toLowCardinality(2), 3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT POW(toLowCardinality(2), 3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT POW(toLowCardinality(2), 3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 361 out of 1000 SELECT POW(3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 362 out of 1000 SELECT POW(3, 2), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 363 out of 1000 SELECT POW(3, 2), avg(log(toUInt256(toDateTime(tupleElement(time, toLowCardinality(1))), 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT POW(3, 2), avg(log(toUInt256(toDateTime(tupleElement(time, toLowCardinality(1))), 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POW(3, 2), avg(log(toUInt256(toDateTime(tupleElement(time, toLowCardinality(1))), 2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 364 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 365 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 366 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 367 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 368 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 369 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 370 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 371 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 372 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 373 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 374 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 375 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 376 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 377 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 378 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 379 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POW'): POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 380 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 381 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 382 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 383 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 384 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 385 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 386 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 387 out of 1000 EXPLAIN SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 388 out of 1000 EXPLAIN SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 389 out of 1000 EXPLAIN SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 390 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 391 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 392 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 393 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 394 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 395 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 396 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 397 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 398 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 399 out of 1000 EXPLAIN ESTIMATE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 400 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 401 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 402 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 403 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 404 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 405 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 406 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 407 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 408 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 409 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 410 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 411 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 412 out of 1000 EXPLAIN SYNTAX SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 413 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 414 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 415 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 416 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 417 out of 1000 EXPLAIN SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 418 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 419 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 420 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 421 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 422 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 423 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 424 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POWER(toLowCardinality(2), 3) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WHERE POWER(toLowCardinality(2), 3) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Float64 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 425 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 426 out of 1000 EXPLAIN AST SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 427 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 428 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 429 out of 1000 EXPLAIN QUERY TREE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 430 out of 1000 EXPLAIN SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 431 out of 1000 EXPLAIN SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 432 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 433 out of 1000 EXPLAIN PIPELINE SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 434 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 435 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(number % materialize(3), 10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(number % materialize(3), 10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'number' while processing query: 'number % materialize(3)', required columns: 'number' 'number'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 436 out of 1000 SELECT POW(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), 3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT POW(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), 3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT POW(dateDiff(toNullable('second'), toDateTime(tupleElement(time, toUInt128(1))), toDateTime(tupleElement(2))), 3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 22. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 24. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 26. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 28. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 30. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 31. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 Fuzzing step 437 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 438 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 439 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 440 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 441 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 442 out of 1000 SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(2) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 443 out of 1000 SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 444 out of 1000 SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 445 out of 1000 EXPLAIN optimize = true SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'EXPLAIN optimize = true SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 446 out of 1000 EXPLAIN PIPELINE SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 447 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POW'): POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_m. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 448 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('POW'): POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_m. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 449 out of 1000 EXPLAIN AST SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 450 out of 1000 EXPLAIN AST SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 451 out of 1000 EXPLAIN SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 452 out of 1000 EXPLAIN QUERY TREE SELECT POW(materialize(3), 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 453 out of 1000 SELECT POW(materialize(3), materialize(toNullable(2))), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 454 out of 1000 SELECT POW(materialize(3), materialize(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 455 out of 1000 SELECT POW(materialize(3), materialize(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 456 out of 1000 SELECT POW(3, materialize(2)), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 457 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 458 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 459 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 460 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 461 out of 1000 SELECT POW(3, 2), avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 462 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 463 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 464 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 465 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toNullable(toNullable(56)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toNullable(toNullable(56)) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 466 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 467 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt128(10000000))) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(toLowCardinality(toUInt128(10000000))) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 468 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 469 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 470 out of 1000 SELECT avg(multiply(log(2), pow(3, toLowCardinality(materialize(2))), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT avg(multiply(log(2), pow(3, toLowCardinality(materialize(2))), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT avg(multiply(log(2), pow(3, toLowCardinality(materialize(2))), number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 471 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 472 out of 1000 SELECT avg(log(2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 473 out of 1000 SELECT avg(log(pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT avg(log(pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT avg(log(pow(power(toLowCardinality(toNullable(3)), 3, 2), 3, 2), 2) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 474 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 475 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 476 out of 1000 SELECT round(toNullable(toLowCardinality(avg(log(toUInt256(toLowCardinality(2))) * number), 6))), avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT round(toNullable(toLowCardinality(avg(log(toUInt256(toLowCardinality(2))) * number), 6))), avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT round(toNullable(toLowCardinality(avg(log(toUInt256(toLowCardinality(2))) * number), 6))), avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 477 out of 1000 SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 478 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 479 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toString(2) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toString(2) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Invalid type for filter in PREWHERE: String. In query SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) PREWHERE toString(2) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>&, String, String>(int, FormatStringHelperImpl>&>::type, std::type_identity::type, std::type_identity::type>, std::basic_string_view>&, String&&, String&&) @ 0x0000000016a0cf2c 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::(anonymous namespace)::validateFilter(std::shared_ptr const&, std::basic_string_view>, std::shared_ptr const&) @ 0x0000000017555866 5. ./contrib/llvm-project/libcxx/include/vector:1501: DB::validateFilters(std::shared_ptr const&) @ 0x0000000017555553 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defcb 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 9. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 10. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 11. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 13. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 14. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 15. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 17. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 18. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 20. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 21. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 22. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 23. __tsan_thread_start_func @ 0x000000000758ef2f 24. ? @ 0x00007f341fe93ac3 25. ? @ 0x00007f341ff258d0 Fuzzing step 480 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 481 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 482 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 483 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 484 out of 1000 SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT avg(multiply(number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 485 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 486 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 487 out of 1000 SELECT avg(toString(POW(toLowCardinality(POW(toLowCardinality(clear_column__fuzz_25, 3), toNullable(2)), 2))), log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT avg(toString(POW(toLowCardinality(POW(toLowCardinality(clear_column__fuzz_25, 3), toNullable(2)), 2))), log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_25' in scope SELECT avg(toString(POW(toLowCardinality(POW(toLowCardinality(clear_column__fuzz_25, 3), toNullable(2)), 2))), log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 488 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 489 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 490 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 491 out of 1000 SELECT avg(log(toNullable(materialize(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 492 out of 1000 SELECT avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 493 out of 1000 SELECT avg(log(materialize(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 494 out of 1000 SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 495 out of 1000 SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 496 out of 1000 SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 497 out of 1000 SELECT avg(log(toUInt256(57), materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(log(toUInt256(57), materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT avg(log(toUInt256(57), materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 498 out of 1000 SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 499 out of 1000 SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 500 out of 1000 SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(power(toLowCardinality(POWER(toNullable(toNullable(3)), materialize(materialize(2))), 3), toNullable(3), materialize(toNullable(2))), 10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(power(toLowCardinality(POWER(toNullable(toNullable(3)), materialize(materialize(2))), 3), toNullable(3), materialize(toNullable(2))), 10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function toLowCardinality doesn't match: passed 2, should be 1: In scope SELECT avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(power(toLowCardinality(POWER(toNullable(toNullable(3)), materialize(materialize(2))), 3), toNullable(3), materialize(toNullable(2))), 10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./contrib/llvm-project/libcxx/include/vector:438: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174e8d79 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 501 out of 1000 SELECT avg(log(materialize(toNullable(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 502 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 503 out of 1000 SELECT avg(log(toNullable(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 504 out of 1000 SELECT avg(log(toNullable(materialize(toNullable(toUInt256(2))))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 505 out of 1000 SELECT avg(log(toNullable(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT avg(log(toNullable(materialize(toNullable(2)))) * number) IGNORE NULLS AS k FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 506 out of 1000 SELECT avg(log(materialize(toNullable(toUInt256(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 507 out of 1000 SELECT avg(log(materialize(toNullable(toUInt256(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 508 out of 1000 SELECT avg(log(materialize(toNullable(toUInt256(2)))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 509 out of 1000 SELECT avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 510 out of 1000 SELECT avg(log(materialize(toUInt256(2))) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 511 out of 1000 SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 512 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_sta. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 513 out of 1000 SELECT max(log(toLowCardinality(2)) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 514 out of 1000 SELECT max(log(toLowCardinality(2)) * number), avg(multiply(log(toUInt256(2)), 3, number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(toLowCardinality(2)) * number), avg(multiply(log(toUInt256(2)), 3, number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT max(log(toLowCardinality(2)) * number), avg(multiply(log(toUInt256(2)), 3, number)) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 515 out of 1000 SELECT max(log(toLowCardinality(2)) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 516 out of 1000 SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) RESPECT NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Function avg does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 517 out of 1000 SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 518 out of 1000 SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 519 out of 1000 SELECT max(log(2) * number), avg(log(toUInt256(2)) * number) IGNORE NULLS AS k FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 520 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 521 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 522 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 523 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 524 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 525 out of 1000 SELECT max(multiply(log(toNullable(2)))) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(multiply(log(toNullable(2)))) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(log(toNullable(2)))) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 526 out of 1000 EXPLAIN ESTIMATE SELECT max(log(2) * number) FROM numbers(10000000) GROUP BY avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS, toFixedString(materialize(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'EXPLAIN ESTIMATE SELECT max(log(2) * number) FROM numbers(10000000) GROUP BY avg(log(materialize(materialize(toNullable(2)))) * number) IGNORE NULLS, toFixedString(materialize(toNullable(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', 57))), 57) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Aggregate function avg(log(materialize(materialize(toNullable(2)))) * number) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc2522 15. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 16. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 527 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 528 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 529 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 530 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 531 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 532 out of 1000 SELECT max(log(log(toLowCardinality(2)), toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(log(toLowCardinality(2)), toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(log(toLowCardinality(2)), toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 533 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 534 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 535 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 536 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 537 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 538 out of 1000 SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 539 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 540 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 541 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 542 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 543 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 544 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 545 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 546 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 547 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 548 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 549 out of 1000 SELECT max(log(10, 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(10, 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(10, 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 550 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 551 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 552 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 553 out of 1000 SELECT max(log(toDateTime(tupleElement(time, toLowCardinality(1))), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(toDateTime(tupleElement(time, toLowCardinality(1))), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(toDateTime(tupleElement(time, toLowCardinality(1))), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 554 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 555 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 556 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 557 out of 1000 SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 558 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 559 out of 1000 SELECT max(multiply(log(2), log(2), number)) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(multiply(log(2), log(2), number)) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT max(multiply(log(2), log(2), number)) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 560 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 561 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 562 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 563 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(2) * number) FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 564 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 565 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(2) * number) FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 566 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 567 out of 1000 SELECT max(multiply(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), log(2), number)) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(multiply(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), log(2), number)) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT max(multiply(toFixedString('01473_metric_log_table_event_start_time_microseconds_test', toUInt128(57)), log(2), number)) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 568 out of 1000 SELECT max(multiply(number)) IGNORE NULLS, max(log(toLowCardinality(toUInt128(2))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(multiply(number)) IGNORE NULLS, max(log(toLowCardinality(toUInt128(2))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(number)) IGNORE NULLS, max(log(toLowCardinality(toUInt128(2))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 569 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(toNullable(2))))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 570 out of 1000 SELECT max(log(toUInt256(2)) * number) RESPECT NULLS, max(log(materialize(toLowCardinality(toUInt128(toNullable(2))))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(toUInt256(2)) * number) RESPECT NULLS, max(log(materialize(toLowCardinality(toUInt128(toNullable(2))))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 571 out of 1000 SELECT max(log(toUInt256(toLowCardinality(2))) * number) IGNORE NULLS, max(log(materialize(pow(3, toNullable(2)), toUInt128(toNullable(2)))) * number) RESPECT NULLS FROM numbers(toUInt128(10000000)) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT max(log(toUInt256(toLowCardinality(2))) * number) IGNORE NULLS, max(log(materialize(pow(3, toNullable(2)), toUInt128(toNullable(2)))) * number) RESPECT NULLS FROM numbers(toUInt128(10000000)) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 572 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(log(toNullable(toUInt128(2))) * number, 2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(toUInt256(5))) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(log(toNullable(toUInt128(2))) * number, 2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(toUInt256(5))) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': 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 max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(materialize(toLowCardinality(toUInt128(log(toNullable(toUInt128(2))) * number, 2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(toUInt256(5))) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x0000000007801f0f 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt128, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x00000000077f8a2f 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 Fuzzing step 573 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 574 out of 1000 EXPLAIN PIPELINE compact = true SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE compact = true SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(toNullable(5)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 575 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 576 out of 1000 SELECT max(multiply(log(toUInt256(2)), clear_column__fuzz_33, number)) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(multiply(log(toUInt256(2)), clear_column__fuzz_33, number)) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_33' in scope SELECT max(multiply(log(toUInt256(2)), clear_column__fuzz_33, number)) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 577 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 578 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 579 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toUInt128(toNullable(2)))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 580 out of 1000 SELECT max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS, max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 581 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 582 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 583 out of 1000 SELECT max(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), log(toUInt256(2)) * number) IGNORE NULLS, max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(materialize(toNullable('01473_metric_log_table_event_start_time_microseconds_test')), log(toUInt256(2)) * number) IGNORE NULLS, max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WHERE materialize(5) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x0000000016270334 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 584 out of 1000 SELECT max(log(2) * number) IGNORE NULLS, max(log(toLowCardinality(avg(materialize(56) * log(2)), toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS, max(log(toLowCardinality(avg(materialize(56) * log(2)), toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 max(log(2) * number) IGNORE NULLS, max(log(toLowCardinality(avg(materialize(56) * log(2)), toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 585 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS, max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 586 out of 1000 SELECT max(log(2) * number) IGNORE NULLS, max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 587 out of 1000 SELECT max(log(2) * number) IGNORE NULLS, max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 588 out of 1000 SELECT max(log(2) * number) IGNORE NULLS, max(log(toLowCardinality(toNullable(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 589 out of 1000 SELECT max(log(2) * number) IGNORE NULLS, max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 590 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT max(log(2) * number) IGNORE NULLS, max(log(log(toUInt128(materialize(2))) * number, toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT max(log(2) * number) IGNORE NULLS, max(log(log(toUInt128(materialize(2))) * number, toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 591 out of 1000 SELECT max(log(2) * number) IGNORE NULLS, max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 592 out of 1000 SELECT max(log(materialize(toNullable(toLowCardinality(2)))), log(2) * number) IGNORE NULLS, max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WHERE power(materialize(toLowCardinality(3)), 2) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT max(log(materialize(toNullable(toLowCardinality(2)))), log(2) * number) IGNORE NULLS, max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WHERE power(materialize(toLowCardinality(3)), 2) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x0000000016270334 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 593 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 594 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 595 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 596 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 597 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 598 out of 1000 SELECT max(toDateTime(tupleElement(time, toUInt128(1))), log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) GROUP BY clear_column__fuzz_25, toDateTime(tupleElement(time, toLowCardinality(2))), toNullable(toNullable(3)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(toDateTime(tupleElement(time, toUInt128(1))), log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) GROUP BY clear_column__fuzz_25, toDateTime(tupleElement(time, toLowCardinality(2))), toNullable(toNullable(3)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(toDateTime(tupleElement(time, toUInt128(1))), log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) GROUP BY clear_column__fuzz_25, toDateTime(tupleElement(time, toLowCardinality(2))), toNullable(toNullable(3)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 19. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 21. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 23. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 25. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 26. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 27. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 28. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 30. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 31. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 Fuzzing step 599 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 600 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 601 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 602 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 603 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 604 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 605 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 606 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 607 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 608 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 609 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 610 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 611 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 612 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 613 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 614 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 615 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 616 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 617 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 618 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 619 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 620 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 621 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 622 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 623 out of 1000 EXPLAIN PIPELINE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 624 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 625 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 626 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 627 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 628 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 629 out of 1000 EXPLAIN SYNTAX SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 630 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 631 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 632 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(material. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 633 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 634 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 635 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 636 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 637 out of 1000 EXPLAIN AST SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 638 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 639 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 640 out of 1000 EXPLAIN SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 641 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 642 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 643 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 644 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 645 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 646 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 647 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) GROUP BY log(toUInt128(materialize(2))) * number, toNullable(10000000), 56 * log(toLowCardinality(2)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) GROUP BY log(toUInt128(materialize(2))) * number, toNullable(10000000), 56 * log(toLowCardinality(2)) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 11.823255792 seconds, maximum: 10. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, double&&, double&&) @ 0x0000000016e49406 4. ./build_docker/./src/QueryPipeline/ExecutionSpeedLimits.cpp:111: DB::ExecutionSpeedLimits::checkTimeLimit(Stopwatch const&, DB::OverflowMode) const @ 0x0000000016e48526 5. ./build_docker/./src/Interpreters/ProcessList.cpp:482: DB::QueryStatus::checkTimeLimit() @ 0x0000000017f2cbe1 6. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:198: DB::PipelineExecutor::finalizeExecution() @ 0x000000001a33cd88 7. ./build_docker/./src/Processors/Executors/PipelineExecutor.cpp:0: DB::PipelineExecutor::execute(unsigned long, bool) @ 0x000000001a33c9c8 8. ./build_docker/./src/Processors/Executors/PullingAsyncPipelineExecutor.cpp:94: void std::__function::__policy_invoker::__call_impl::ThreadFromGlobalPoolImpl(DB::PullingAsyncPipelineExecutor::pull(DB::Chunk&, unsigned long)::$_0&&)::'lambda'(), void ()>>(std::__function::__policy_storage const*) @ 0x000000001a350d3b 9. ./base/base/../base/wide_integer_impl.h:817: ThreadPoolImpl::ThreadFromThreadPool::worker() @ 0x000000000fb19fbe 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: void* std::__thread_proxy[abi:v15007]>, void (ThreadPoolImpl::ThreadFromThreadPool::*)(), ThreadPoolImpl::ThreadFromThreadPool*>>(void*) @ 0x000000000fb21f5c 11. __tsan_thread_start_func @ 0x000000000758ef2f 12. ? @ 0x00007f341fe93ac3 13. ? @ 0x00007f341ff258d0 Fuzzing step 648 out of 1000 SELECT max(log(toNullable(toNullable(2))) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 649 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 650 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 651 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 652 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 653 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 654 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) GROUP BY avg(log(materialize(toLowCardinality(2))) * number), round(avg(log(materialize(2)) * number) IGNORE NULLS, 6), toUInt128(materialize(57)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) FROM numbers(10000000) GROUP BY avg(log(materialize(toLowCardinality(2))) * number), round(avg(log(materialize(2)) * number) IGNORE NULLS, 6), toUInt128(materialize(57)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg(log(materialize(toLowCardinality(2))) * number) is found in GROUP BY in query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&) @ 0x0000000009576ec6 4. ./build_docker/./src/Analyzer/AggregationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b55c 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x000000001755b4d8 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::assertNoAggregateFunctionNodes(std::shared_ptr const&, String const&) @ 0x000000001755b890 7. ./contrib/llvm-project/libcxx/include/string:1499: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x0000000017556194 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 11. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 13. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 15. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 17. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 19. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 20. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 22. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 23. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 24. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 25. __tsan_thread_start_func @ 0x000000000758ef2f 26. ? @ 0x00007f341fe93ac3 27. ? @ 0x00007f341ff258d0 Fuzzing step 655 out of 1000 SELECT max(log(2) * number) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(toUInt128(56)) DESC, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) FROM numbers(toUInt128(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(toUInt128(56)) DESC, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 656 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 657 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WHERE log(toNullable(materialize(toNullable(2)))) * number WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(2) * number) FROM numbers(10000000) WHERE log(toNullable(materialize(toNullable(2)))) * number WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) of column multiply(log(toNullable(materialize(_CAST(2_Nullable(UInt8), 'Nullable(UInt8)'_String)))), __table1.number) for filter. Must be UInt8 or Nullable(UInt8).. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 658 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 659 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 660 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 661 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) DESC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 662 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) DESC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 663 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 664 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 665 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 666 out of 1000 SELECT max(log(toDateTime(tupleElement(time, 1)), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(toDateTime(tupleElement(time, 1)), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(toDateTime(time.1), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 25. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 27. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 29. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 31. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 Fuzzing step 667 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 668 out of 1000 SELECT toString(power(POWER(POW(2), 2), 3, toLowCardinality(2)), time), max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT toString(power(POWER(POW(2), 2), 3, toLowCardinality(2)), time), max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 1, should be 2: In scope SELECT toString(power(POWER(POW(2), 2), 3, toLowCardinality(2)), time), max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 669 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 670 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 671 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 672 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 673 out of 1000 SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 674 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT max(log(toNullable(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 675 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 676 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 677 out of 1000 SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 678 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 679 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(avg(56 * log(toUInt256(2))), 10000000) WHERE max(log(materialize(2)) * number) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS FROM numbers(avg(56 * log(toUInt256(2))), 10000000) WHERE max(log(materialize(2)) * number) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function avg(_CAST(38.816242111356935, 'Float64')) is found in wrong place in query: While processing avg(_CAST(38.816242111356935, 'Float64')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./src/Interpreters/GetAggregatesVisitor.h:0: DB::GetAggregatesMatcher::visit(DB::ASTFunction const&, std::shared_ptr const&, DB::GetAggregatesMatcher::Data&) @ 0x0000000017751e63 5. ./src/Interpreters/InDepthNodeVisitor.h:78: DB::InDepthNodeVisitor const>::doVisit(std::shared_ptr const&) @ 0x000000001775191b 6. ./src/Interpreters/InDepthNodeVisitor.h:0: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x00000000181863d3 7. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 8. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 9. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 10. ./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 @ 0x0000000015ea812a 11. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 12. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 680 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 681 out of 1000 SELECT max(log(materialize(2)) * number) IGNORE NULLS FROM numbers(10000000) WHERE avg(56 * log(toNullable(toDateTime(tupleElement(time, toUInt128(1))), 2))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(materialize(2)) * number) IGNORE NULLS FROM numbers(10000000) WHERE avg(56 * log(toNullable(toDateTime(tupleElement(time, toUInt128(1))), 2))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(materialize(2)) * number) IGNORE NULLS FROM numbers(10000000) WHERE avg(56 * log(toNullable(toDateTime(tupleElement(time, toUInt128(1))), 2))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 26. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 28. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 29. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 30. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 Fuzzing step 682 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 683 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 684 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 685 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 686 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 687 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 688 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 689 out of 1000 EXPLAIN actions = true SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'EXPLAIN actions = true SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(toUInt128(56)) ASC, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 690 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(toUInt128(56)) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 691 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 692 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 693 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 694 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 695 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 696 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 697 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 698 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 699 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 700 out of 1000 SELECT number, max(log(toLowCardinality(materialize(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT number, max(log(toLowCardinality(materialize(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Column number is not under aggregate function and not in GROUP BY keys. In query SELECT number, max(log(toLowCardinality(materialize(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557b35 5. ./src/Analyzer/InDepthQueryTreeVisitor.h:0: DB::InDepthQueryTreeVisitor::visit(std::shared_ptr const&) @ 0x0000000017557737 6. ./build_docker/./src/Analyzer/ValidationUtils.cpp:0: DB::validateAggregates(std::shared_ptr const&, DB::AggregatesValidationParams) @ 0x000000001755716d 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174defe9 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 10. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 12. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 14. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 16. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 18. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 19. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 21. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 22. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 23. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 24. __tsan_thread_start_func @ 0x000000000758ef2f 25. ? @ 0x00007f341fe93ac3 26. ? @ 0x00007f341ff258d0 Fuzzing step 701 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 702 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 703 out of 1000 SELECT max(log(toLowCardinality(toUInt128(toUInt128(3)), 2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(log(toLowCardinality(toUInt128(toUInt128(3)), 2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 max(log(toLowCardinality(toUInt128(toUInt128(3)), 2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b31 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 704 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 705 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WHERE toUInt256(63) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WHERE toUInt256(63) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/Columns/FilterDescription.cpp:0: DB::ConstantFilterDescription::ConstantFilterDescription(DB::IColumn const&) @ 0x00000000190d52df 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&) @ 0x0000000017e72087 6. ./build_docker/./src/Planner/PlannerExpressionAnalysis.cpp:0: DB::buildExpressionAnalysisResult(std::shared_ptr const&, std::vector> const&, std::shared_ptr const&, DB::PlannerQueryProcessingInfo const&) @ 0x0000000017e66bf7 7. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:515: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10701 8. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 9. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 10. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 13. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 14. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 15. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 16. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 17. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 18. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 19. __tsan_thread_start_func @ 0x000000000758ef2f 20. ? @ 0x00007f341fe93ac3 21. ? @ 0x00007f341ff258d0 Fuzzing step 706 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 707 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 708 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 709 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 710 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 711 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC, log(toUInt256(toLowCardinality(2))) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT round(avg(log(toLowCardinality(2)) * number) IGNORE NULLS), max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC, log(toUInt256(toLowCardinality(2))) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 712 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 713 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 714 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 715 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 716 out of 1000 SELECT max(log(materialize(toUInt128(2)), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(materialize(toUInt128(2)), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(materialize(toUInt128(2)), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 717 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 718 out of 1000 SELECT max(log(toLowCardinality(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 719 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 720 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 721 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) PREWHERE materialize(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) PREWHERE materialize(toUInt256(toUInt128(3))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 722 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 723 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 724 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 725 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 726 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 727 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 728 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 729 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 730 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 731 out of 1000 SELECT max(multiply(log(2), power(3, materialize(toLowCardinality(2))), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(multiply(log(2), power(3, materialize(toLowCardinality(2))), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT max(multiply(log(2), power(3, materialize(toLowCardinality(2))), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 732 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 733 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 734 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 735 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 736 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(pow(toNullable(3), toNullable(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS FROM numbers(pow(toNullable(3), toNullable(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(Float64) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 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 @ 0x0000000015ea812a 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 737 out of 1000 SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) PREWHERE avg(log(toLowCardinality(toNullable(2))) * number) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) PREWHERE avg(log(toLowCardinality(toNullable(2))) * number) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) PREWHERE avg(log(toLowCardinality(toNullable(2))) * number) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 738 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 739 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 740 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 741 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 742 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 743 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 744 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 745 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 746 out of 1000 EXPLAIN AST optimize = true SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'EXPLAIN AST optimize = true SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5a1e 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 747 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 748 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0 WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0 WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) FROM numbers(10000000) WHERE dateDiff('second', toDateTime(tupleElement(time, toLowCardinality(1))), toDateTime(time.2)) = 0 WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 20. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 24. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 26. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 28. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 29. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 30. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 31. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 Fuzzing step 749 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 750 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 751 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 752 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 753 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 754 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 755 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 756 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 757 out of 1000 SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 758 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 759 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 760 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 761 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 762 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 763 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 764 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 765 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) PREWHERE toNullable(3) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(2) * number) FROM numbers(10000000) PREWHERE toNullable(3) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. ./build_docker/./src/Planner/CollectTableExpressionData.cpp:0: DB::collectTableExpressionData(std::shared_ptr&, std::shared_ptr&) @ 0x000000001757d2da 5. ./build_docker/./src/Planner/Planner.cpp:0: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e0ccd9 6. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 7. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 9. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 11. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 12. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 13. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 14. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 15. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 16. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 17. __tsan_thread_start_func @ 0x000000000758ef2f 18. ? @ 0x00007f341fe93ac3 19. ? @ 0x00007f341ff258d0 Fuzzing step 766 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 767 out of 1000 SELECT max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS, max(multiply(clear_column__fuzz_44, log(2), number)) FROM numbers(materialize(toUInt128(10000000))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(toUInt256(toNullable(2))) * number) IGNORE NULLS, max(multiply(clear_column__fuzz_44, log(2), number)) FROM numbers(materialize(toUInt128(10000000))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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(_CAST('10000000', 'UInt128')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 768 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 769 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 770 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 771 out of 1000 SELECT max(multiply(log(2), round(toNullable(toLowCardinality(toNullable(6)))), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(multiply(log(2), round(toNullable(toLowCardinality(toNullable(6)))), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT max(multiply(log(2), round(toNullable(toLowCardinality(toNullable(6)))), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 772 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC NULLS FIRST, log(mat. Expected one of: token sequence, Dot, token, Equals, end of query. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 773 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 774 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 775 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 776 out of 1000 SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 777 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 778 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 779 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 780 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 781 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 782 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Got boring AST Fuzzing step 783 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 784 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 785 out of 1000 SELECT max(multiply(log(toUInt128(2)), clear_column__fuzz_37, number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(multiply(log(toUInt128(2)), clear_column__fuzz_37, number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'clear_column__fuzz_37' in scope SELECT max(multiply(log(toUInt128(2)), clear_column__fuzz_37, number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 786 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 787 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 788 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 789 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 790 out of 1000 EXPLAIN indexes = true SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN indexes = true SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::(anonymous namespace)::ExplainSettings DB::(anonymous namespace)::checkAndGetSettings(std::shared_ptr const&) @ 0x0000000017ccb238 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc1e65 6. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 7. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 8. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 9. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 10. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 11. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 12. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 13. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 14. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 15. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 16. __tsan_thread_start_func @ 0x000000000758ef2f 17. ? @ 0x00007f341fe93ac3 18. ? @ 0x00007f341ff258d0 Fuzzing step 791 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 792 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 793 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 794 out of 1000 SELECT max(log(toUInt256(toUInt128(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 795 out of 1000 SELECT max(log(toUInt256(toUInt128(2))) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 796 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 797 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 798 out of 1000 EXPLAIN PIPELINE header = true, compact = true SELECT max(log(toUInt256(2)) * number) IGNORE NULLS FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true, compact = true SELECT max(log(toUInt256(2)) * number) IGNORE NULLS FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 799 out of 1000 SELECT max(log(toUInt256(2)) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, toNullable(10000000) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 800 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 801 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 802 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 803 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(2) * number) IGNORE NULLS FROM numbers(toUInt256(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 804 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 805 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 806 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 807 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 808 out of 1000 SELECT max(log(toLowCardinality(toLowCardinality(2))), log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(log(toLowCardinality(toLowCardinality(2))), log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 809 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 810 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 811 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 812 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 813 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 814 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 815 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 816 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 817 out of 1000 SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 1, should be 2: In scope SELECT max(multiply(log(2))) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 818 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 819 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 820 out of 1000 SELECT max(multiply(round(toNullable(toLowCardinality(6))), log(2), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(multiply(round(toNullable(toLowCardinality(6))), log(2), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT max(multiply(round(toNullable(toLowCardinality(6))), log(2), number)) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 821 out of 1000 SELECT max(round(max(log(2) * number) IGNORE NULLS), log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(round(max(log(2) * number) IGNORE NULLS), log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, toFixedString('ok', toNullable(2)) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 822 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 823 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 824 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Got boring AST Fuzzing step 825 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 826 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * numbe. Expected one of: token sequence, Dot, token, Equals, OpeningRoundBracket. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 827 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 828 out of 1000 EXPLAIN AST SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 829 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 830 out of 1000 EXPLAIN SYNTAX SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 831 out of 1000 EXPLAIN AST SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 832 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 833 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 834 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 835 out of 1000 EXPLAIN PIPELINE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 836 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 837 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 838 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 839 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 840 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 841 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 842 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 843 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 844 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 845 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 846 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 847 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 848 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 849 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 850 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 851 out of 1000 SELECT max(log(toUInt256(pow(3, toLowCardinality(toLowCardinality(2))), 2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT max(log(toUInt256(pow(3, toLowCardinality(toLowCardinality(2))), 2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC 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 SELECT max(log(toUInt256(pow(3, toLowCardinality(toLowCardinality(2))), 2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, POW(toNullable(toLowCardinality(toNullable('01473_trace_log_table_event_start_time_microseconds_test'))), 3, 2) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, String&, String&&) @ 0x000000000764ae6c 4. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x0000000007648bf1 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&) @ 0x00000000078175cf 6. DB::(anonymous namespace)::FunctionConvert>, DB::(anonymous namespace)::NameToUInt256, DB::(anonymous namespace)::ToNumberMonotonicity>>::getReturnTypeImpl(std::vector> const&) const @ 0x000000000780e86c 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 27. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 29. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 30. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 31. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e Fuzzing step 852 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 853 out of 1000 EXPLAIN SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 854 out of 1000 EXPLAIN SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 855 out of 1000 EXPLAIN SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 856 out of 1000 EXPLAIN SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 857 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 858 out of 1000 EXPLAIN ESTIMATE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 859 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 860 out of 1000 EXPLAIN CURRENT TRANSACTION SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN CURRENT TRANSACTION SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 37 ('max'): max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 861 out of 1000 EXPLAIN PIPELINE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 862 out of 1000 EXPLAIN PIPELINE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 863 out of 1000 EXPLAIN PIPELINE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 864 out of 1000 EXPLAIN PIPELINE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 865 out of 1000 EXPLAIN AST SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 866 out of 1000 EXPLAIN AST SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 867 out of 1000 EXPLAIN AST SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 868 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 869 out of 1000 EXPLAIN QUERY TREE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 870 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 871 out of 1000 EXPLAIN TABLE OVERRIDE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'EXPLAIN TABLE OVERRIDE SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Syntax error: failed at position 32 ('max'): max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::createDeprecated(String const&, int, bool) @ 0x000000000764caa3 3. ./build_docker/./src/Parsers/parseQuery.cpp:407: DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, String const&, bool, unsigned long, unsigned long, unsigned long) @ 0x000000001b0731f0 4. ./build_docker/./src/Parsers/parseQuery.cpp:420: DB::parseQuery(DB::IParser&, char const*, char const*, String const&, unsigned long, unsigned long, unsigned long) @ 0x000000001b0732af 5. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x00000000182621ab 6. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 7. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 8. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 9. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 10. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 11. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 12. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 13. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 14. __tsan_thread_start_func @ 0x000000000758ef2f 15. ? @ 0x00007f341fe93ac3 16. ? @ 0x00007f341ff258d0 Fuzzing step 872 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 873 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 874 out of 1000 EXPLAIN SYNTAX SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 875 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 876 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 877 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3), time)), 2), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(log(toUInt256(2)) * number) FROM numbers(toString(if(dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, 'ok', toString(57, POWER(3), time)), 2), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Missing columns: 'time' while processing query: 'toString(if(dateDiff('second', toDateTime(time.1), toDateTime(time.2)) = 0, 'ok', toString(57, pow(3), time)), 2)', required columns: 'time' 'time'. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1280: DB::TreeRewriterResult::collectUsedColumns(std::shared_ptr const&, bool, bool) @ 0x000000001817a7df 4. ./build_docker/./src/Interpreters/TreeRewriter.cpp:1544: DB::TreeRewriter::analyze(std::shared_ptr&, DB::NamesAndTypesList const&, std::shared_ptr, std::shared_ptr const&, bool, bool, bool, bool) const @ 0x0000000018186461 5. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x00000000182300a6 6. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 7. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 8. ./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 @ 0x0000000015ea812a 9. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 10. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 878 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 879 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 880 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 881 out of 1000 EXPLAIN PIPELINE header = true SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WHERE if(equals(max(log(avg(log(toLowCardinality(2)) * number), 2) * number), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), 'ok', toString(time)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'EXPLAIN PIPELINE header = true SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WHERE if(equals(max(log(avg(log(toLowCardinality(2)) * number), 2) * number), dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, toLowCardinality(2)))), 0), 'ok', toString(time)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 882 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 883 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 884 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 885 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 886 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 887 out of 1000 SELECT max(log(toUInt256(toUInt128(2))) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 888 out of 1000 SELECT max(log(toUInt256(toUInt128(2))) * number) FROM numbers(10000000) GROUP BY pow(3, toLowCardinality(toLowCardinality(toUInt256(2)))), round(avg(65535, log(toNullable(materialize(2))) * number)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT max(log(toUInt256(toUInt128(2))) * number) FROM numbers(10000000) GROUP BY pow(3, toLowCardinality(toLowCardinality(toUInt256(2)))), round(avg(65535, log(toNullable(materialize(2))) * number)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of argument of function pow: In scope SELECT max(log(toUInt256(toUInt128(2))) * number) FROM numbers(10000000) GROUP BY pow(3, toLowCardinality(toLowCardinality(toUInt256(2)))), round(avg(65535, log(toNullable(materialize(2))) * number)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String&&) @ 0x0000000007618406 4. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const::'lambda'(DB::IDataType const*)::operator()(DB::IDataType const*) const @ 0x000000000e00c235 5. DB::FunctionMathBinaryFloat64>::getReturnTypeImpl(std::vector, std::allocator>> const&) const @ 0x000000000df48440 6. DB::IFunction::getReturnTypeImpl(std::vector> const&) const @ 0x0000000007615924 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 889 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 890 out of 1000 SELECT max(log(toUInt128(2)), log(toUInt256(toUInt128(2))) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT max(log(toUInt128(2)), log(toUInt256(toUInt128(2))) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Aggregate function max requires single argument. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./src/AggregateFunctions/FactoryHelpers.h:27: _ZN2DBL34createAggregateFunctionSingleValueITtTyTpTnbENS_12_GLOBAL__N_123AggregateFunctionMinMaxELb1EJLb0EEEEPNS_18IAggregateFunctionERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKNS5_6vectorINS5_10shared_ptrIKNS_9IDataTypeEEENS9_ISI_EEEERKNS_5ArrayEPKNS_8SettingsE @ 0x00000000149b494b 5. ./build_docker/./src/AggregateFunctions/AggregateFunctionsMinMax.cpp:0: std::shared_ptr DB::(anonymous namespace)::createAggregateFunctionMinMax(String const&, std::vector, std::allocator>> const&, DB::Array const&, DB::Settings const*) @ 0x000000001498a687 6. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001364ea3e 7. ./contrib/llvm-project/libcxx/include/__functional/function.h:0: ? @ 0x000000001627222c 8. ./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 @ 0x000000001627006b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 891 out of 1000 SELECT max(log(toUInt256(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 892 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 893 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 894 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 895 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 896 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 897 out of 1000 SELECT max(log(materialize(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 898 out of 1000 SELECT max(log(log(toNullable(materialize(toNullable(toUInt128(2))))) * number, 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Error on processing query 'SELECT max(log(log(toNullable(materialize(toNullable(toUInt128(2))))) * number, 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(log(toNullable(materialize(toNullable(toUInt128(2))))) * number, 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 899 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 900 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 901 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 902 out of 1000 SELECT toNullable(toUInt256(3)), max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 903 out of 1000 SELECT toNullable(toUInt256(3)), max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 904 out of 1000 SELECT toNullable(toUInt256(3)), max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 905 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 906 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WHERE number % toUInt256(3) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WHERE number % toUInt256(3) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type UInt256 of column modulo(__table1.number, _CAST('3'_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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type>, String&&, String const&) @ 0x0000000008251126 4. ./build_docker/./src/Processors/Transforms/FilterTransform.cpp:0: DB::FilterTransform::transformHeader(DB::Block const&, DB::ActionsDAG const*, String const&, bool) @ 0x000000001a6f3fcf 5. ./build_docker/./src/Processors/QueryPlan/FilterStep.cpp:19: DB::FilterStep::FilterStep(DB::DataStream const&, DB::ActionsDAG, String, bool) @ 0x000000001a938455 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&) @ 0x0000000017dd3b62 7. ./build_docker/./src/Planner/Planner.cpp:0: DB::(anonymous namespace)::addFilterStep(DB::QueryPlan&, DB::FilterAnalysisResult&, String const&, std::unordered_set, std::hash>, std::equal_to>, std::allocator>>&) @ 0x0000000017e19477 8. ./contrib/llvm-project/libcxx/include/string:1499: DB::Planner::buildPlanForQueryNode() @ 0x0000000017e10b02 9. ./build_docker/./src/Planner/Planner.cpp:1254: DB::Planner::buildQueryPlanIfNeeded() @ 0x0000000017e0a5c3 10. ./src/Planner/Planner.h:44: DB::InterpreterSelectQueryAnalyzer::getQueryPlan() @ 0x0000000017e077db 11. ./build_docker/./src/Interpreters/executeQuery.cpp:1182: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x000000001826531e 12. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 14. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 15. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 16. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 17. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 18. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 19. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 20. __tsan_thread_start_func @ 0x000000000758ef2f 21. ? @ 0x00007f341fe93ac3 22. ? @ 0x00007f341ff258d0 Fuzzing step 907 out of 1000 SELECT max(POWER(materialize(2), materialize(3)), multiply(log(2), log(toUInt128(materialize(2))), number)) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(POWER(materialize(2), materialize(3)), multiply(log(2), log(toUInt128(materialize(2))), number)) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT max(POWER(materialize(2), materialize(3)), multiply(log(2), log(toUInt128(materialize(2))), number)) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 908 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 909 out of 1000 SELECT max(multiply(log(toUInt256(2)), log(2), number)) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(multiply(log(toUInt256(2)), log(2), number)) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function multiply doesn't match: passed 3, should be 2: In scope SELECT max(multiply(log(toUInt256(2)), log(2), number)) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 910 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 911 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), materialize(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, toNullable(toLowCardinality(toUInt128(toUInt128(57)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) FROM numbers(round(log(2)), materialize(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, toNullable(toLowCardinality(toUInt128(toUInt128(57)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 912 out of 1000 SELECT max(log(2) * number) FROM numbers(round(log(2)), 10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 913 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 914 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 915 out of 1000 SELECT max(log(toNullable(materialize(toLowCardinality(2))), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Error on processing query 'SELECT max(log(toNullable(materialize(toLowCardinality(2))), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(toNullable(materialize(toLowCardinality(2))), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 916 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 917 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 918 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 919 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 920 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 921 out of 1000 EXPLAIN QUERY TREE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 922 out of 1000 EXPLAIN SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 923 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 924 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 925 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 926 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 927 out of 1000 EXPLAIN PIPELINE SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 928 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 929 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 930 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 931 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 932 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 933 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Query succeeded, using this AST as a start Fuzzing step 934 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 935 out of 1000 SELECT max(log(pow(toLowCardinality(3), 2), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(log(pow(toLowCardinality(3), 2), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(pow(toLowCardinality(3), 2), 2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 936 out of 1000 SELECT max(log(2) * number) IGNORE NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Got boring AST Fuzzing step 937 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 938 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 939 out of 1000 EXPLAIN QUERY TREE dump_ast = true SELECT max(log(2) * number) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'EXPLAIN QUERY TREE dump_ast = true SELECT max(log(2) * number) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5adb 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 940 out of 1000 SELECT max(multiply(log(2) * number, log(2), number)) FROM numbers(10000000) WHERE 38 WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(multiply(log(2) * number, log(2), number)) FROM numbers(10000000) WHERE 38 WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') 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 SELECT max(multiply(log(2) * number, log(2), number)) FROM numbers(10000000) WHERE 38 WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 941 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 942 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 943 out of 1000 SELECT max(log(materialize(2147483647), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Error on processing query 'SELECT max(log(materialize(2147483647), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC': Received from localhost:9000. DB::Exception: Number of arguments for function log doesn't match: passed 2, should be 1: In scope SELECT max(log(materialize(2147483647), 2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 944 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 945 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 946 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 947 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 948 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 949 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 950 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 951 out of 1000 SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 952 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) ASC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 953 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 954 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 955 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC Query succeeded, using this AST as a start Fuzzing step 956 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 957 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 958 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS LAST Got boring AST Fuzzing step 959 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) DESC NULLS FIRST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 960 out of 1000 SELECT toNullable('01473_metric_log_table_event_start_time_microseconds_test'), max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 961 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 962 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 963 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', max(log(2) * number) FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT '01473_metric_log_table_event_start_time_microseconds_test', max(log(2) * number) FROM numbers(materialize(toNullable(10000000))) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC NULLS LAST, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC 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(_CAST(10000000, 'Nullable(UInt32)')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 964 out of 1000 SELECT '01473_metric_log_table_event_start_time_microseconds_test', max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY max(log(toUInt256(2)) * number) ASC, log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 965 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC, log(materialize(toUInt256(toNullable(2)))) ASC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 966 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 967 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 968 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') ASC NULLS FIRST Got boring AST Fuzzing step 969 out of 1000 SELECT max(log(toNullable(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 970 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 971 out of 1000 SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 972 out of 1000 SELECT max(log(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), 2) * number) FROM numbers(10000000) PREWHERE POW(POW(3, toUInt128(2)), 2) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), 2) * number) FROM numbers(10000000) PREWHERE POW(POW(3, toUInt128(2)), 2) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(log(power(POWER(POW(3, 2), 2), 3, toLowCardinality(2)), 2) * number) FROM numbers(10000000) PREWHERE POW(POW(3, toUInt128(2)), 2) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 24. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 25. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 26. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 27. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 28. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 29. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 30. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c Fuzzing step 973 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 974 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 975 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) GROUP BY round(max(log(materialize(2)) * number)), number % 2, plus(round(avg(dateDiff('second', dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(2)))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Error on processing query 'SELECT max(log(2) * number) FROM numbers(10000000) GROUP BY round(max(log(materialize(2)) * number)), number % 2, plus(round(avg(dateDiff('second', dateDiff('second', toDateTime(tupleElement(time, 1)), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toDateTime(tupleElement(time, 1)), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(2)))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT max(log(2) * number) FROM numbers(10000000) GROUP BY round(max(log(materialize(2)) * number)), number % 2, plus(round(avg(dateDiff('second', dateDiff('second', toDateTime(time.1), toDateTime(tupleElement(time, materialize(toLowCardinality('01473_metric_log_table_event_start_time_microseconds_test')), 2))) = 0, toDateTime(time.1), toDateTime(time.2)) = 0, log(materialize(toNullable(materialize(2)))) * number) IGNORE NULLS), number % materialize(2), number % toNullable(3)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 28. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 29. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 30. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 31. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 Fuzzing step 976 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 977 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 978 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WHERE materialize(power(toLowCardinality(toNullable(3)), 3, 2), 3) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) FROM numbers(10000000) WHERE materialize(power(toLowCardinality(toNullable(3)), 3, 2), 3) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Number of arguments for function pow doesn't match: passed 3, should be 2: In scope SELECT max(log(2) * number) FROM numbers(10000000) WHERE materialize(power(toLowCardinality(toNullable(3)), 3, 2), 3) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, avg(log(toUInt256(toLowCardinality(2))) * number) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd809 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 16. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 19. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 20. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 21. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 22. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 23. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 24. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 25. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 27. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 28. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 29. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 30. __tsan_thread_start_func @ 0x000000000758ef2f 31. ? @ 0x00007f341fe93ac3 Fuzzing step 979 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 980 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, avg(log(toUInt256(toLowCardinality(2))) * number) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS LAST Got boring AST Fuzzing step 981 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 982 out of 1000 SELECT max(log(2) * number) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) FROM numbers(toNullable(10000000)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS LAST, materialize('01473_query_log_table_event_start_time_microseconds_test') DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type Nullable(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 983 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 984 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS LAST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Got boring AST Fuzzing step 985 out of 1000 SELECT max(log(2) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 986 out of 1000 SELECT max(log(materialize(2)) * number) FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Error on processing query 'SELECT max(log(materialize(2)) * number) FROM numbers(toLowCardinality(10000000)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Illegal type LowCardinality(UInt32) expression, must be numeric type. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&&) @ 0x0000000007615d00 4. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:0: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea8a99 5. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 6. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 7. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 13. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 15. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 16. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 17. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 18. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 19. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 21. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 22. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 24. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 25. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 26. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 27. __tsan_thread_start_func @ 0x000000000758ef2f 28. ? @ 0x00007f341fe93ac3 29. ? @ 0x00007f341ff258d0 Fuzzing step 987 out of 1000 SELECT max(multiply(log(2), materialize(6), number)) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST Error on processing query 'SELECT max(multiply(log(2), materialize(6), number)) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) 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 SELECT max(multiply(log(2), materialize(6), number)) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 988 out of 1000 SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) RESPECT NULLS FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 14. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 16. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 18. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 19. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 20. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 22. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 23. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 24. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 25. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 26. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 27. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 28. __tsan_thread_start_func @ 0x000000000758ef2f 29. ? @ 0x00007f341fe93ac3 30. ? @ 0x00007f341ff258d0 Fuzzing step 989 out of 1000 SELECT max(log(2) * number) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Error on processing query 'SELECT max(log(2) * number) FROM numbers(materialize(10000000)) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) ASC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) 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(10000000). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 7. ./build_docker/./src/TableFunctions/TableFunctionNumbers.cpp:80: DB::(anonymous namespace)::TableFunctionNumbers::executeImpl(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool) const @ 0x0000000015ea81d5 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 990 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 991 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Got boring AST Fuzzing step 992 out of 1000 EXPLAIN PIPELINE header = true SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS FIRST Error on processing query 'EXPLAIN PIPELINE header = true SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) 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) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception>, String const&>(int, FormatStringHelperImpl>>::type, std::type_identity::type>, std::basic_string_view>&&, String const&) @ 0x000000001646fac6 4. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:327: DB::InterpreterExplainQuery::executeImpl() @ 0x0000000017cc5e27 5. ./build_docker/./src/Interpreters/InterpreterExplainQuery.cpp:0: DB::InterpreterExplainQuery::execute() @ 0x0000000017cc0fdf 6. ./build_docker/./src/Interpreters/executeQuery.cpp:0: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265f07 7. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 8. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 9. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 10. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 11. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 12. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 13. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 14. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 15. __tsan_thread_start_func @ 0x000000000758ef2f 16. ? @ 0x00007f341fe93ac3 17. ? @ 0x00007f341ff258d0 Fuzzing step 993 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 994 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST Got boring AST Fuzzing step 995 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST Got boring AST Fuzzing step 996 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC, log(materialize(toUInt256(toNullable(2)))) DESC NULLS LAST Got boring AST Fuzzing step 997 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 998 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST Got boring AST Fuzzing step 999 out of 1000 SELECT max(log(toUInt128(2)) * number) FROM numbers(10000000) WITH TOTALS ORDER BY log(toLowCardinality(toUInt128(toNullable(2)))) DESC NULLS FIRST, log(materialize(toUInt256(toNullable(2)))) ASC NULLS FIRST Got boring AST 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 round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Query succeeded, using this AST as a start Fuzzing step 2 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k ASC Query succeeded, using this AST as a start Fuzzing step 3 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(number % materialize(2)) % 2 ORDER BY k ASC Error on processing query 'SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(number % materialize(2)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Number of arguments for function plus doesn't match: passed 1, should be 2: In scope SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(number % materialize(2)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 4 out of 1000 SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number), ((number % materialize(toUInt256(2))) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number), ((number % materialize(toUInt256(2))) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT round(max(log(2) * number), 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(number), ((number % materialize(toUInt256(2))) + (number % 3)) % 2 ORDER BY k ASC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 5 out of 1000 SELECT round(max(log(2) * number)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), 2)) + (number % 3)) % 2 ORDER BY k ASC Error on processing query 'SELECT round(max(log(2) * number)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), 2)) + (number % 3)) % 2 ORDER BY k ASC': Received from localhost:9000. DB::Exception: Unknown expression or function identifier 'time' in scope SELECT round(max(log(2) * number)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(toDateTime(tupleElement(time, toLowCardinality(toLowCardinality(2)))), 2)) + (number % 3)) % 2 ORDER BY k ASC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. ./contrib/llvm-project/libcxx/include/vector:438: DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type, std::type_identity::type, std::type_identity::type>, char const*&&, String&, String const&, String&&, String&&) @ 0x000000001752241c 4. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e7d5f 5. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 6. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 21. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 22. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 23. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 24. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 25. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 26. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 27. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 28. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 30. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 31. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 Fuzzing step 6 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 7 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(toLowCardinality(toUInt128(toNullable(2)))), 10000000) GROUP BY number % 2, number % 3, (modulo(materialize(2)) + (number % 3)) % 2 ORDER BY k DESC Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(materialize(toLowCardinality(toUInt128(toNullable(2)))), 10000000) GROUP BY number % 2, number % 3, (modulo(materialize(2)) + (number % 3)) % 2 ORDER BY k 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(_CAST('2', 'LowCardinality(Nullable(UInt128))')). Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String&) @ 0x0000000007655cc0 4. ./build_docker/./src/Interpreters/evaluateConstantExpression.cpp:0: DB::evaluateConstantExpressionImpl(std::shared_ptr const&, std::shared_ptr const&, bool) @ 0x0000000018230976 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::evaluateConstantExpression(std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000018230ef6 6. ./contrib/llvm-project/libcxx/include/__utility/pair.h:513: DB::(anonymous namespace)::TableFunctionNumbers::evaluateArgument(std::shared_ptr, std::shared_ptr&) const @ 0x0000000015ea87ca 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 @ 0x0000000015ea812a 8. ./build_docker/./src/TableFunctions/ITableFunction.cpp:36: DB::ITableFunction::execute(std::shared_ptr const&, std::shared_ptr, String const&, DB::ColumnsDescription, bool, bool) const @ 0x000000001627ac00 9. ./build_docker/./src/Interpreters/Context.cpp:2234: DB::Context::executeTableFunction(std::shared_ptr const&, std::shared_ptr const&) @ 0x00000000175f7521 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:4838: DB::QueryAnalyzer::resolveTableFunction(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&, bool) @ 0x00000000174ebaa0 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQueryJoinTreeNode(std::shared_ptr&, DB::IdentifierResolveScope&, DB::QueryExpressionsAliasVisitor&) @ 0x000000001751a799 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd4cf 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 8 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Query succeeded, using this AST as a start Fuzzing step 9 out of 1000 SELECT round(max(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(max(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k 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 SELECT round(max(multiply(number)) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 17. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 18. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 19. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 20. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 21. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 22. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 23. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 25. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 26. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 27. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 28. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 29. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 30. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 31. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 Fuzzing step 10 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, toUInt256(6)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(number % 2) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS, toUInt256(6)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(number % 2) % 2 ORDER BY k DESC NULLS FIRST': 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: UInt256: In scope SELECT round(max(log(2) * number) IGNORE NULLS, toUInt256(6)) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, plus(number % 2) % 2 ORDER BY k DESC NULLS FIRST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 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&&) @ 0x000000000764bb3c 4. DB::(anonymous namespace)::validateArgumentsImpl(DB::IFunction const&, std::vector> const&, unsigned long, std::vector> const&) @ 0x0000000007648ff4 5. DB::validateFunctionArguments(DB::IFunction const&, std::vector> const&, std::vector> const&, std::vector> const&) @ 0x000000000764887a 6. DB::FunctionRounding::getReturnTypeImpl(std::vector> const&) const @ 0x00000000082f2cf6 7. DB::FunctionToOverloadResolverAdaptor::getReturnTypeImpl(std::vector> const&) const @ 0x00000000076361fa 8. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718e8b 9. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 10. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 14. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 17. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 18. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 20. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 21. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 22. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 23. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 24. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 25. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 26. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 27. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 28. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 29. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 30. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 31. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea Fuzzing step 11 out of 1000 SELECT round(max(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Error on processing query 'SELECT round(max(log(2) * number) RESPECT NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST': Received from localhost:9000. DB::Exception: Function max does not support RESPECT NULLS. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type>, String const&) @ 0x000000000762eaa0 4. ./build_docker/./src/AggregateFunctions/AggregateFunctionFactory.cpp:137: DB::AggregateFunctionFactory::getAssociatedFunctionByNullsAction(String const&, DB::NullsAction) const @ 0x0000000016272b9f 5. ./contrib/llvm-project/libcxx/include/optional:344: DB::AggregateFunctionFactory::tryGetProperties(String, DB::NullsAction) const @ 0x000000001627117d 6. ./contrib/llvm-project/libcxx/include/string:1499: DB::AggregateFunctionFactory::get(String const&, DB::NullsAction, std::vector, std::allocator>> const&, DB::Array const&, DB::AggregateFunctionProperties&) const @ 0x000000001626ffe7 7. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506daa 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:2813: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017501288 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 13. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:815: DB::QueryAnalyzer::resolveProjectionExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017517b25 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd554 15. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 16. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 17. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 18. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:0: DB::(anonymous namespace)::buildQueryTreeAndRunPasses(std::shared_ptr const&, DB::SelectQueryOptions const&, std::shared_ptr const&, std::shared_ptr const&) @ 0x0000000017e06910 19. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 20. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 21. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 22. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 23. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 24. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 25. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 26. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 27. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 28. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 29. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 30. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 31. __tsan_thread_start_func @ 0x000000000758ef2f Fuzzing step 12 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 13 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 14 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS FIRST Got boring AST Fuzzing step 15 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS LAST Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS LAST': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 1, should be 2: In scope SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % 2, modulo(3), ((number % 2) + (number % 3)) % 2 ORDER BY k DESC NULLS LAST. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 16 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toLowCardinality(toNullable(2)), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY k DESC Query succeeded, using this AST as a start Fuzzing step 17 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) ASC, k DESC Query succeeded, using this AST as a start Fuzzing step 18 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % materialize(3), modulo((number % 2) + (number % 3), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 2) ORDER BY materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) ASC, k DESC Error on processing query 'SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % materialize(3), modulo((number % 2) + (number % 3), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 2) ORDER BY materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) ASC, k DESC': Received from localhost:9000. DB::Exception: Number of arguments for function modulo doesn't match: passed 3, should be 2: In scope SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % materialize(3), modulo((number % 2) + (number % 3), toFixedString(toNullable('01473_query_log_table_event_start_time_microseconds_test'), 56), 2) ORDER BY materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) ASC, k DESC. Stack trace: 0. ./contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x000000001e5f2cc3 1. ./build_docker/./src/Common/Exception.cpp:111: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000fa0e035 2. DB::Exception::Exception(PreformattedMessage&&, int) @ 0x000000000761637e 3. DB::Exception::Exception(int, FormatStringHelperImpl::type, std::type_identity::type, std::type_identity::type>, String&&, unsigned long&, unsigned long&) @ 0x000000000871b62c 4. DB::IFunctionOverloadResolver::checkNumberOfArguments(unsigned long) const @ 0x0000000008718669 5. DB::IFunctionOverloadResolver::getReturnTypeWithoutLowCardinality(std::vector> const&) const @ 0x0000000008718d9f 6. DB::IFunctionOverloadResolver::getReturnType(std::vector> const&) const @ 0x0000000008718b77 7. DB::IFunctionOverloadResolver::build(std::vector> const&) const @ 0x000000000871964b 8. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3426: DB::QueryAnalyzer::resolveFunction(std::shared_ptr&, DB::IdentifierResolveScope&) @ 0x0000000017506bb4 9. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveExpressionNode(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool, bool) @ 0x00000000174e5b46 10. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:3910: DB::QueryAnalyzer::resolveExpressionNodeList(std::shared_ptr&, DB::IdentifierResolveScope&, bool, bool) @ 0x00000000174e489b 11. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveGroupByNode(DB::QueryNode&, DB::IdentifierResolveScope&) @ 0x000000001751681c 12. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolveQuery(std::shared_ptr const&, DB::IdentifierResolveScope&) @ 0x00000000174dd909 13. ./build_docker/./src/Analyzer/Resolve/QueryAnalyzer.cpp:0: DB::QueryAnalyzer::resolve(std::shared_ptr&, std::shared_ptr const&, std::shared_ptr) @ 0x00000000174dc407 14. ./build_docker/./src/Analyzer/Resolve/QueryAnalysisPass.cpp:0: DB::QueryAnalysisPass::run(std::shared_ptr&, std::shared_ptr) @ 0x00000000174db865 15. ./build_docker/./src/Analyzer/QueryTreePassManager.cpp:0: DB::QueryTreePassManager::run(std::shared_ptr) @ 0x0000000017cd4e27 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&) @ 0x0000000017e06910 17. ./build_docker/./src/Interpreters/InterpreterSelectQueryAnalyzer.cpp:160: DB::InterpreterSelectQueryAnalyzer::InterpreterSelectQueryAnalyzer(std::shared_ptr const&, std::shared_ptr const&, DB::SelectQueryOptions const&, std::vector> const&) @ 0x0000000017e03600 18. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: std::unique_ptr> std::__function::__policy_invoker> (DB::InterpreterFactory::Arguments const&)>::__call_impl> (DB::InterpreterFactory::Arguments const&)>>(std::__function::__policy_storage const*, DB::InterpreterFactory::Arguments const&) @ 0x0000000017e07c50 19. ./build_docker/./src/Interpreters/InterpreterFactory.cpp:0: DB::InterpreterFactory::get(std::shared_ptr&, std::shared_ptr, DB::SelectQueryOptions const&) @ 0x0000000017d86c0e 20. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:302: DB::executeQueryImpl(char const*, char const*, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum, DB::ReadBuffer*) @ 0x0000000018265127 21. ./build_docker/./src/Interpreters/executeQuery.cpp:1397: DB::executeQuery(String const&, std::shared_ptr, DB::QueryFlags, DB::QueryProcessingStage::Enum) @ 0x0000000018261438 22. ./contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:612: DB::TCPHandler::runImpl() @ 0x000000001a23401c 23. ./build_docker/./src/Server/TCPHandler.cpp:2527: DB::TCPHandler::run() @ 0x000000001a253a48 24. ./build_docker/./base/poco/Net/src/TCPServerConnection.cpp:57: Poco::Net::TCPServerConnection::start() @ 0x000000001e6ff8c3 25. ./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:48: Poco::Net::TCPServerDispatcher::run() @ 0x000000001e700132 26. ./build_docker/./base/poco/Foundation/src/ThreadPool.cpp:219: Poco::PooledThread::run() @ 0x000000001e679343 27. ./build_docker/./base/poco/Foundation/src/Thread.cpp:46: Poco::(anonymous namespace)::RunnableHolder::run() @ 0x000000001e677610 28. ./base/poco/Foundation/include/Poco/SharedPtr.h:231: Poco::ThreadImpl::runnableEntry(void*) @ 0x000000001e675aea 29. __tsan_thread_start_func @ 0x000000000758ef2f 30. ? @ 0x00007f341fe93ac3 31. ? @ 0x00007f341ff258d0 Fuzzing step 19 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) ASC, k DESC Got boring AST Fuzzing step 20 out of 1000 SELECT round(max(log(2) * number) IGNORE NULLS, 6) AS k FROM numbers(10000000) GROUP BY number % toNullable(2), number % 3, ((number % 2) + (number % 3)) % 2 ORDER BY materialize(toFixedString(toLowCardinality('01473_query_log_table_event_start_time_microseconds_test'), 56)) ASC, k DESC NULLS FIRST